mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, python3
|
|
, pkg-config
|
|
, libbacktrace
|
|
, bzip2
|
|
, lz4
|
|
, postgresql
|
|
, libxml2
|
|
, libyaml
|
|
, zlib
|
|
, libssh2
|
|
, zstd
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pgbackrest";
|
|
version = "2.53.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgbackrest";
|
|
repo = "pgbackrest";
|
|
rev = "release/${version}";
|
|
sha256 = "sha256-gCjPwDV7jlUwWUhuXHKqL/kigsu3V0ikxhcB3EIBvU0=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
python3
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libbacktrace
|
|
bzip2
|
|
lz4
|
|
postgresql
|
|
libxml2
|
|
libyaml
|
|
zlib
|
|
libssh2
|
|
zstd
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm555 -t "$out/bin" src/pgbackrest
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|