python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / database / pg_checksums / default.nix
blobb2d8b3fc05bdbceeed3a0e8fa2114001fef97f82
1 { lib, stdenv, fetchFromGitHub, libxslt, docbook_xsl, postgresql }:
3 stdenv.mkDerivation rec {
4   pname = "pg_checksums";
5   version = "1.1";
7   src = fetchFromGitHub {
8     owner = "credativ";
9     repo = pname;
10     rev = version;
11     sha256 = "sha256-Ij+4ceQauX3tC97ftk/JS3/WlocPBf7A7PJrylpTLzw=";
12   };
14   nativeBuildInputs = [ libxslt.bin ];
16   buildInputs = [ postgresql ];
18   buildFlags = [ "all" "man" ];
20   preConfigure = ''
21     substituteInPlace doc/stylesheet-man.xsl \
22       --replace "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" "${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
23   '';
25   installPhase = ''
26     install -Dm755 -t $out/bin pg_checksums_ext
27     install -Dm644 -t $out/share/man/man1 doc/man1/pg_checksums_ext.1
28   '';
30   meta = with lib; {
31     description = "Activate/deactivate/verify checksums in offline PostgreSQL clusters";
32     homepage = "https://github.com/credativ/pg_checksums";
33     maintainers = [ maintainers.marsam ];
34     mainProgram = "pg_checksums_ext";
35     platforms = postgresql.meta.platforms;
36     license = licenses.postgresql;
37   };