at 23.11-beta 40 lines 842 B view raw
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.48"; 17 18 src = fetchFromGitHub { 19 owner = "pgbackrest"; 20 repo = "pgbackrest"; 21 rev = "release/${version}"; 22 sha256 = "sha256-RaNF5ufQafZjE2MfOlFOXkot/JEJCQOuiuIYgJolkbU="; 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 mainProgram = "pgbackrest"; 38 maintainers = with maintainers; [ zaninime ]; 39 }; 40}