mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #78006 from marsam/init-pg_checksums
pg_checksums: init at 1.0
This commit is contained in:
commit
d3ad670ca2
37
pkgs/development/tools/database/pg_checksums/default.nix
Normal file
37
pkgs/development/tools/database/pg_checksums/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ stdenv, fetchFromGitHub, libxslt, docbook_xsl, postgresql }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pg_checksums";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "credativ";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0xc2bwp55xjnnf45lc60ldxpb5jfyi1bgfkv3nxrymcswh8yfidj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ libxslt.bin ];
|
||||
|
||||
buildInputs = [ postgresql ];
|
||||
|
||||
buildFlags = [ "all" "man" ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace doc/stylesheet-man.xsl \
|
||||
--replace "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" "${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 -t $out/bin pg_checksums
|
||||
install -Dm644 -t $out/share/man/man1 doc/man1/pg_checksums.1
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Activate/deactivate/verify checksums in offline PostgreSQL clusters";
|
||||
homepage = "https://github.com/credativ/pg_checksums";
|
||||
maintainers = [ maintainers.marsam ];
|
||||
platforms = postgresql.meta.platforms;
|
||||
license = licenses.postgresql;
|
||||
};
|
||||
}
|
@ -5699,6 +5699,8 @@ in
|
||||
|
||||
peco = callPackage ../tools/text/peco { };
|
||||
|
||||
pg_checksums = callPackage ../development/tools/database/pg_checksums { };
|
||||
|
||||
pg_flame = callPackage ../tools/misc/pg_flame { };
|
||||
|
||||
pg_top = callPackage ../tools/misc/pg_top { };
|
||||
|
Loading…
Reference in New Issue
Block a user