Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, pkg-config 5, postgresql 6, openssl 7, lz4 8, bzip2 9, libxml2 10, zlib 11, zstd 12, libyaml 13}: 14stdenv.mkDerivation rec { 15 pname = "pgbackrest"; 16 version = "2.46"; 17 18 src = fetchFromGitHub { 19 owner = "pgbackrest"; 20 repo = "pgbackrest"; 21 rev = "release/${version}"; 22 sha256 = "sha256-Jd49ZpG/QhX+ayk9Ld0FB8abemfxQV6KZZuSXmybZw4="; 23 }; 24 25 nativeBuildInputs = [ pkg-config ]; 26 buildInputs = [ postgresql openssl lz4 bzip2 libxml2 zlib zstd libyaml ]; 27 28 postUnpack = '' 29 sourceRoot+=/src 30 ''; 31 32 meta = with lib; { 33 description = "Reliable PostgreSQL backup & restore"; 34 homepage = "https://pgbackrest.org/"; 35 changelog = "https://github.com/pgbackrest/pgbackrest/releases"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ zaninime ]; 38 }; 39}