depot/third_party/nixpkgs/pkgs/tools/backup/pgbackrest/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

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.46";
src = fetchFromGitHub {
owner = "pgbackrest";
repo = "pgbackrest";
rev = "release/${version}";
sha256 = "sha256-Jd49ZpG/QhX+ayk9Ld0FB8abemfxQV6KZZuSXmybZw4=";
};
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 ];
};
}