diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-01-18 21:21:21 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-01-18 21:21:21 -0500 |
commit | 7867005552c6815ff34e8a641e1e91b2ac0f7935 (patch) | |
tree | 490de5c4373d7f77aa697817c1bbd48309c17386 /pkgs/development/tools/database | |
parent | 26f1ce12769917426f7cd90a54586cc31cb8b161 (diff) | |
download | nixlib-7867005552c6815ff34e8a641e1e91b2ac0f7935.tar nixlib-7867005552c6815ff34e8a641e1e91b2ac0f7935.tar.gz nixlib-7867005552c6815ff34e8a641e1e91b2ac0f7935.tar.bz2 nixlib-7867005552c6815ff34e8a641e1e91b2ac0f7935.tar.lz nixlib-7867005552c6815ff34e8a641e1e91b2ac0f7935.tar.xz nixlib-7867005552c6815ff34e8a641e1e91b2ac0f7935.tar.zst nixlib-7867005552c6815ff34e8a641e1e91b2ac0f7935.zip |
pg_checksums: init at 1.0
Diffstat (limited to 'pkgs/development/tools/database')
-rw-r--r-- | pkgs/development/tools/database/pg_checksums/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/tools/database/pg_checksums/default.nix b/pkgs/development/tools/database/pg_checksums/default.nix new file mode 100644 index 000000000000..f440e550a897 --- /dev/null +++ b/pkgs/development/tools/database/pg_checksums/default.nix @@ -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; + }; +} |