2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, postgresql
|
|
|
|
, openssl
|
|
|
|
, lz4
|
|
|
|
, bzip2
|
|
|
|
, libxml2
|
|
|
|
, zlib
|
|
|
|
, zstd
|
|
|
|
, libyaml
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgbackrest";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.50";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgbackrest";
|
|
|
|
repo = "pgbackrest";
|
|
|
|
rev = "release/${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-RjkTg80LAUndSVfTrol9hvgNOG6PMC+OkMVjdtjpdbI=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "pgbackrest";
|
2022-10-30 15:09:59 +00:00
|
|
|
maintainers = with maintainers; [ zaninime ];
|
|
|
|
};
|
|
|
|
}
|