571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
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.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 ];
|
|
};
|
|
}
|