7d542a9f98
GitOrigin-RevId: b72b8b94cf0c012b0252a9100a636cad69696666
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.43";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgbackrest";
|
|
repo = "pgbackrest";
|
|
rev = "release/${version}";
|
|
sha256 = "sha256-JZHE68d8fzqr0kI35TxoVB3Frt/v22xkZexfzhkqzBU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|