pgbackrest: build with meson
This commit is contained in:
parent
a7266560fd
commit
3ed9a873da
1 changed files with 36 additions and 9 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue