about summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-03-30 21:01:15 +0100
committerGitHub <noreply@github.com>2024-03-30 21:01:15 +0100
commit3792ef0447b041aef3a8463b574818321e67180d (patch)
treea2c139adac96edb3690ef9e321fd0d16f311bcf3 /pkgs/tools/backup
parentef040b05c97b1ffd2dbf0ac89ad9c8a3fe36049e (diff)
parent3ed9a873daa4364fbcf9f6c63145ae5eea53cebe (diff)
Merge pull request #298975 from NickCao/pgbackrest
pgbackrest: 2.50 -> 2.51, build with meson
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/pgbackrest/default.nix47
1 files changed, 37 insertions, 10 deletions
diff --git a/pkgs/tools/backup/pgbackrest/default.nix b/pkgs/tools/backup/pgbackrest/default.nix
index a2c7273325540..02933fcc63ef9 100644
--- a/pkgs/tools/backup/pgbackrest/default.nix
+++ b/pkgs/tools/backup/pgbackrest/default.nix
@@ -1,32 +1,59 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, meson
+, ninja
+, python3
 , pkg-config
-, postgresql
-, openssl
-, lz4
+, libbacktrace
 , bzip2
+, lz4
+, postgresql
 , libxml2
+, libyaml
 , zlib
+, libssh2
 , zstd
-, libyaml
 }:
+
 stdenv.mkDerivation rec {
   pname = "pgbackrest";
-  version = "2.50";
+  version = "2.51";
 
   src = fetchFromGitHub {
     owner = "pgbackrest";
     repo = "pgbackrest";
     rev = "release/${version}";
-    sha256 = "sha256-RjkTg80LAUndSVfTrol9hvgNOG6PMC+OkMVjdtjpdbI=";
+    sha256 = "sha256-o6UROI+t35lHSFeRMLh0nIkmLMdcclpkKNzjkw/z56Q=";
   };
 
-  nativeBuildInputs = [ pkg-config ];
-  buildInputs = [ postgresql openssl lz4 bzip2 libxml2 zlib zstd libyaml ];
+  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
 
-  postUnpack = ''
-    sourceRoot+=/src
+    runHook postInstall
   '';
 
   meta = with lib; {