depot/third_party/nixpkgs/pkgs/tools/backup/pgbackrest/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

67 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.54.0";
src = fetchFromGitHub {
owner = "pgbackrest";
repo = "pgbackrest";
rev = "release/${version}";
sha256 = "sha256-EYpzVrEM0GrCJcGnFT4XfN6pULqsSMyH02b0zGInH7U=";
};
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 ];
};
}