summary refs log tree commit diff
path: root/pkgs/tools/backup/borg
diff options
context:
space:
mode:
authorMartin Bornhold <mb@bo-tech.de>2017-11-15 16:54:22 +0100
committerMartin Bornhold <mb@bo-tech.de>2017-11-15 17:49:33 +0100
commit629e17b9fdfcb61d6896e424edda91abab7bcd41 (patch)
treeda7d5d2b5ccd23b453f8bfaf0e7bac6a1e0a7bbd /pkgs/tools/backup/borg
parentb159ed50695350430c8effa79796bd9f4836e79c (diff)
downloadnixpkgs-629e17b9fdfcb61d6896e424edda91abab7bcd41.tar
nixpkgs-629e17b9fdfcb61d6896e424edda91abab7bcd41.tar.gz
nixpkgs-629e17b9fdfcb61d6896e424edda91abab7bcd41.tar.bz2
nixpkgs-629e17b9fdfcb61d6896e424edda91abab7bcd41.tar.lz
nixpkgs-629e17b9fdfcb61d6896e424edda91abab7bcd41.tar.xz
nixpkgs-629e17b9fdfcb61d6896e424edda91abab7bcd41.tar.zst
nixpkgs-629e17b9fdfcb61d6896e424edda91abab7bcd41.zip
borgbackup: Add llfuse to propagated build inputs if not on darwin
The llfuse package depends on fuse which refuses to build on darwin. But
according to a comment in the setup.py of borgbackup [1] it's ok to leave it out
if it's not available. Most of borgbackup should work without it. Would be great
to make it work on darwin but i am not sure if it's possible to get fuse to work
on darwin. I do not know enough about it ;)

After this modification at least the "borg mount" subcommand is broken due to
the missing llfuse module. But the rest seems to work normally.

[1] https://github.com/borgbackup/borg/blob/72232a9bd573aeb4818b36c9c8764b6008e9283e/setup.py#L32
Diffstat (limited to 'pkgs/tools/backup/borg')
-rw-r--r--pkgs/tools/backup/borg/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/backup/borg/default.nix b/pkgs/tools/backup/borg/default.nix
index 015f0524155..867d2cf903a 100644
--- a/pkgs/tools/backup/borg/default.nix
+++ b/pkgs/tools/backup/borg/default.nix
@@ -19,8 +19,8 @@ python3Packages.buildPythonApplication rec {
     lz4 openssl python3Packages.setuptools_scm
   ] ++ stdenv.lib.optionals stdenv.isLinux [ acl ];
   propagatedBuildInputs = with python3Packages; [
-    cython llfuse msgpack
-  ];
+    cython msgpack
+  ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ llfuse ];
 
   preConfigure = ''
     export BORG_OPENSSL_PREFIX="${openssl.dev}"