about summary refs log tree commit diff
path: root/pkgs/tools/backup/borg
diff options
context:
space:
mode:
authorJustin Humm <justin.humm@posteo.de>2018-10-06 23:53:06 +0200
committerJustin Humm <justin.humm@posteo.de>2018-10-06 23:53:06 +0200
commit0cfc923813f803c7a169d257ce856173a2387ffc (patch)
treeee2bdeb13b62c02668d31d3d380972a1f5631d25 /pkgs/tools/backup/borg
parent683c413118c18df7654207831d75286bb067d9f9 (diff)
downloadnixlib-0cfc923813f803c7a169d257ce856173a2387ffc.tar
nixlib-0cfc923813f803c7a169d257ce856173a2387ffc.tar.gz
nixlib-0cfc923813f803c7a169d257ce856173a2387ffc.tar.bz2
nixlib-0cfc923813f803c7a169d257ce856173a2387ffc.tar.lz
nixlib-0cfc923813f803c7a169d257ce856173a2387ffc.tar.xz
nixlib-0cfc923813f803c7a169d257ce856173a2387ffc.tar.zst
nixlib-0cfc923813f803c7a169d257ce856173a2387ffc.zip
borgbackup: patch bug that allowed for exceeding quotas
See also https://github.com/borgbackup/borg/issues/4093 for this.
Diffstat (limited to 'pkgs/tools/backup/borg')
-rw-r--r--pkgs/tools/backup/borg/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/tools/backup/borg/default.nix b/pkgs/tools/backup/borg/default.nix
index fe2f771c7227..72f6cd03e038 100644
--- a/pkgs/tools/backup/borg/default.nix
+++ b/pkgs/tools/backup/borg/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, python3Packages, acl, libb2, lz4, zstd, openssl, openssh }:
+{ stdenv, fetchpatch, python3Packages, acl, libb2, lz4, zstd, openssl, openssh }:
 
 python3Packages.buildPythonApplication rec {
   pname = "borgbackup";
@@ -9,6 +9,15 @@ python3Packages.buildPythonApplication rec {
     sha256 = "f7b51a132e9edfbe1cacb4f478b28caf3622d79fffcb369bdae9f92d8c8a7fdc";
   };
 
+  patches = [
+    # Workarounds for https://github.com/borgbackup/borg/issues/4093
+    # Can be deleted when 1.1.8 comes out
+    (fetchpatch {
+      url = "https://github.com/borgbackup/borg/commit/975cc33206e0e3644626fb7204c34d2157715b61.patch";
+      sha256 = "0b7apaixpa7bk0sy7g5ycm98cjpkg5gkwcgm7m37xj35lzxdlxhc";
+    })
+  ];
+
   nativeBuildInputs = with python3Packages; [
     # For building documentation:
     sphinx guzzle_sphinx_theme