Merge pull request #183465 from zaninime/pgbackrest
This commit is contained in:
commit
ea88d75f17
2 changed files with 41 additions and 0 deletions
39
pkgs/tools/backup/pgbackrest/default.nix
Normal file
39
pkgs/tools/backup/pgbackrest/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7565,6 +7565,8 @@ with pkgs;
|
||||||
|
|
||||||
pgf_graphics = callPackage ../tools/graphics/pgf { };
|
pgf_graphics = callPackage ../tools/graphics/pgf { };
|
||||||
|
|
||||||
|
pgbackrest = callPackage ../tools/backup/pgbackrest { };
|
||||||
|
|
||||||
pgformatter = callPackage ../development/tools/pgformatter { };
|
pgformatter = callPackage ../development/tools/pgformatter { };
|
||||||
|
|
||||||
pgloader = callPackage ../development/tools/pgloader { };
|
pgloader = callPackage ../development/tools/pgloader { };
|
||||||
|
|
Loading…
Reference in a new issue