1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

pgbackrest: build with meson

This commit is contained in:
Nick Cao 2024-03-25 14:04:07 -04:00
parent a7266560fd
commit 3ed9a873da
No known key found for this signature in database

View file

@ -1,16 +1,21 @@
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, python3
, pkg-config
, postgresql
, openssl
, lz4
, libbacktrace
, bzip2
, lz4
, postgresql
, libxml2
, zlib
, zstd
, libyaml
, zlib
, libssh2
, zstd
}:
stdenv.mkDerivation rec {
pname = "pgbackrest";
version = "2.51";
@ -22,11 +27,33 @@ stdenv.mkDerivation rec {
sha256 = "sha256-o6UROI+t35lHSFeRMLh0nIkmLMdcclpkKNzjkw/z56Q=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ postgresql openssl lz4 bzip2 libxml2 zlib zstd libyaml ];
strictDeps = true;
postUnpack = ''
sourceRoot+=/src
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; {