Skip to content

Commit

Permalink
borgbackup: Add llfuse to propagated build inputs if not on darwin
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Martin Bornhold committed Nov 15, 2017
1 parent b159ed5 commit 629e17b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/tools/backup/borg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 629e17b

Please sign in to comment.