a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
39 lines
810 B
Nix
39 lines
810 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, postgresql
|
|
, openssl
|
|
, lz4
|
|
, bzip2
|
|
, libxml2
|
|
, zlib
|
|
, zstd
|
|
, libyaml
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "pgbackrest";
|
|
version = "2.44";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgbackrest";
|
|
repo = "pgbackrest";
|
|
rev = "release/${version}";
|
|
sha256 = "sha256-N56HUW1JZNvaqzU01xaZ8BsFA2KW4z8ixulPngYCIY0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ postgresql openssl lz4 bzip2 libxml2 zlib zstd libyaml ];
|
|
|
|
postUnpack = ''
|
|
sourceRoot+=/src
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Reliable PostgreSQL backup & restore";
|
|
homepage = "https://pgbackrest.org/";
|
|
changelog = "https://github.com/pgbackrest/pgbackrest/releases";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zaninime ];
|
|
};
|
|
}
|