nixpkgs/pkgs/by-name/pg/pgbackrest/package.nix

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

68 lines
1.1 KiB
Nix
Raw Normal View History

2022-07-28 19:44:45 +00:00
{ lib
, stdenv
, fetchFromGitHub
2024-03-25 18:04:07 +00:00
, meson
, ninja
, python3
2022-07-28 19:44:45 +00:00
, pkg-config
2024-03-25 18:04:07 +00:00
, libbacktrace
2022-07-28 19:44:45 +00:00
, bzip2
2024-03-25 18:04:07 +00:00
, lz4
, postgresql
2022-07-28 19:44:45 +00:00
, libxml2
2024-03-25 18:04:07 +00:00
, libyaml
2022-07-28 19:44:45 +00:00
, zlib
2024-03-25 18:04:07 +00:00
, libssh2
2022-07-28 19:44:45 +00:00
, zstd
}:
2024-03-25 18:04:07 +00:00
2022-07-28 19:44:45 +00:00
stdenv.mkDerivation rec {
pname = "pgbackrest";
2024-10-22 00:42:43 +00:00
version = "2.54.0";
2022-07-28 19:44:45 +00:00
src = fetchFromGitHub {
owner = "pgbackrest";
repo = "pgbackrest";
rev = "release/${version}";
2024-10-22 00:42:43 +00:00
sha256 = "sha256-EYpzVrEM0GrCJcGnFT4XfN6pULqsSMyH02b0zGInH7U=";
2022-07-28 19:44:45 +00:00
};
2024-03-25 18:04:07 +00:00
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
2022-07-28 19:44:45 +00:00
2024-03-25 18:04:07 +00:00
runHook postInstall
2022-07-28 19:44:45 +00:00
'';
meta = with lib; {
description = "Reliable PostgreSQL backup & restore";
homepage = "https://pgbackrest.org/";
changelog = "https://github.com/pgbackrest/pgbackrest/releases";
license = licenses.mit;
2023-08-05 01:57:14 +00:00
mainProgram = "pgbackrest";
2022-07-28 19:44:45 +00:00
maintainers = with maintainers; [ zaninime ];
};
}