nixpkgs/pkgs/tools/backup/pgbackrest/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
810 B
Nix
Raw Normal View History

2022-07-28 19:44:45 +00:00
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, postgresql
, openssl
, lz4
, bzip2
, libxml2
, zlib
, zstd
, libyaml
}:
stdenv.mkDerivation rec {
pname = "pgbackrest";
2023-03-22 22:59:03 +00:00
version = "2.45";
2022-07-28 19:44:45 +00:00
src = fetchFromGitHub {
owner = "pgbackrest";
repo = "pgbackrest";
rev = "release/${version}";
2023-03-22 22:59:03 +00:00
sha256 = "sha256-wm7wNxxwRAmFG7ZsZMR8TXp+xVu673g6w95afLalnc8=";
2022-07-28 19:44:45 +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;
maintainers = with maintainers; [ zaninime ];
};
}