summary refs log tree commit diff
path: root/pkgs/tools/backup
diff options
context:
space:
mode:
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>2023-07-08 14:09:58 +0200
committerGitHub <noreply@github.com>2023-07-08 14:09:58 +0200
commit6559eb3572c790c171d669358950794b40193e45 (patch)
tree509e14f3fe0d7013ddb57af04d8009912a6ecedd /pkgs/tools/backup
parent8c26729cc5ddd48f73035da100713756856ae50e (diff)
parent723e9a529a0cd123c98a24f42ec96d015626a8ea (diff)
downloadnixpkgs-6559eb3572c790c171d669358950794b40193e45.tar
nixpkgs-6559eb3572c790c171d669358950794b40193e45.tar.gz
nixpkgs-6559eb3572c790c171d669358950794b40193e45.tar.bz2
nixpkgs-6559eb3572c790c171d669358950794b40193e45.tar.lz
nixpkgs-6559eb3572c790c171d669358950794b40193e45.tar.xz
nixpkgs-6559eb3572c790c171d669358950794b40193e45.tar.zst
nixpkgs-6559eb3572c790c171d669358950794b40193e45.zip
Merge pull request #242049 from rnhmjoj/pr-bup
bup: 0.32 -> 0.33.2
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r--pkgs/tools/backup/bup/default.nix30
1 files changed, 13 insertions, 17 deletions
diff --git a/pkgs/tools/backup/bup/default.nix b/pkgs/tools/backup/bup/default.nix
index 86e598ff600..88b3693d7e9 100644
--- a/pkgs/tools/backup/bup/default.nix
+++ b/pkgs/tools/backup/bup/default.nix
@@ -1,11 +1,16 @@
 { lib, stdenv, fetchFromGitHub, makeWrapper
-, perl, pandoc, python3Packages, git
+, perl, pandoc, python3, git
 , par2cmdline ? null, par2Support ? true
 }:
 
 assert par2Support -> par2cmdline != null;
 
-let version = "0.32"; in
+let
+  version = "0.33.2";
+
+  pythonDeps = with python3.pkgs; [ setuptools tornado ]
+    ++ lib.optionals (!stdenv.isDarwin) [ pyxattr pylibacl fuse ];
+in
 
 stdenv.mkDerivation {
   pname = "bup";
@@ -15,23 +20,13 @@ stdenv.mkDerivation {
     repo = "bup";
     owner = "bup";
     rev = version;
-    sha256 = "sha256-SWnEJ5jwu/Jr2NLsTS8ajWay0WX/gYbOc3J6w00DndI=";
+    hash = "sha256-DDVCrY4SFqzKukXm8rIq90xAW2U+yYyhyPmUhslMMWI=";
   };
 
-  buildInputs = [
-    git
-    (python3Packages.python.withPackages
-      (p: with p; [ setuptools tornado ]
-        ++ lib.optionals (!stdenv.isDarwin) [ pyxattr pylibacl fuse ]))
-  ];
+  buildInputs = [ git python3 ];
   nativeBuildInputs = [ pandoc perl makeWrapper ];
 
-  postPatch = ''
-    patchShebangs .
-    substituteInPlace Makefile --replace "-Werror" ""
-  '' + lib.optionalString par2Support ''
-    substituteInPlace cmd/fsck-cmd.py --replace "'par2'" "'${par2cmdline}/bin/par2'"
-  '';
+  postPatch = "patchShebangs .";
 
   dontAddPrefix = true;
 
@@ -44,7 +39,8 @@ stdenv.mkDerivation {
 
   postInstall = ''
     wrapProgram $out/bin/bup \
-      --prefix PATH : ${git}/bin
+      --prefix PATH : ${lib.makeBinPath [ git par2cmdline ]} \
+      --prefix NIX_PYTHONPATH : ${lib.makeSearchPathOutput "lib" python3.sitePackages pythonDeps}
   '';
 
   meta = with lib; {
@@ -58,6 +54,6 @@ stdenv.mkDerivation {
     '';
 
     platforms = platforms.linux ++ platforms.darwin;
-    maintainers = with maintainers; [ ];
+    maintainers = with maintainers; [ rnhmjoj ];
   };
 }