Merge pull request #183465 from zaninime/pgbackrest

This commit is contained in:
Sandro 2022-10-23 20:37:19 +02:00 committed by GitHub
commit ea88d75f17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, postgresql
, openssl
, lz4
, bzip2
, libxml2
, zlib
, zstd
, libyaml
}:
stdenv.mkDerivation rec {
pname = "pgbackrest";
version = "2.41";
src = fetchFromGitHub {
owner = "pgbackrest";
repo = "pgbackrest";
rev = "release/${version}";
sha256 = "sha256-AaFctLXhzq3Wk+KjxskxazpNEX7UAmXeiJxhYXYwksk=";
};
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 ];
};
}

View file

@ -7565,6 +7565,8 @@ with pkgs;
pgf_graphics = callPackage ../tools/graphics/pgf { };
pgbackrest = callPackage ../tools/backup/pgbackrest { };
pgformatter = callPackage ../development/tools/pgformatter { };
pgloader = callPackage ../development/tools/pgloader { };