nixpkgs/pkgs/tools/backup/pgbackrest/default.nix
2023-11-29 12:29:31 +00:00

41 lines
842 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, postgresql
, openssl
, lz4
, bzip2
, libxml2
, zlib
, zstd
, libyaml
}:
stdenv.mkDerivation rec {
pname = "pgbackrest";
version = "2.49";
src = fetchFromGitHub {
owner = "pgbackrest";
repo = "pgbackrest";
rev = "release/${version}";
sha256 = "sha256-i1IcBNrobhgu+B/ezKFknTiqiZe6LktBxf9YU8JS2Wc=";
};
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;
mainProgram = "pgbackrest";
maintainers = with maintainers; [ zaninime ];
};
}