1 { lib, stdenv, fetchFromGitHub, libxslt, docbook_xsl, postgresql }:
3 stdenv.mkDerivation rec {
4 pname = "pg_checksums";
7 src = fetchFromGitHub {
11 sha256 = "sha256-Ij+4ceQauX3tC97ftk/JS3/WlocPBf7A7PJrylpTLzw=";
14 nativeBuildInputs = [ libxslt.bin ];
16 buildInputs = [ postgresql ];
18 buildFlags = [ "all" "man" ];
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"
26 install -Dm755 -t $out/bin pg_checksums_ext
27 install -Dm644 -t $out/share/man/man1 doc/man1/pg_checksums_ext.1
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;