Merge pull request #118269 from midchildan/feat/fuse/add-darwin

This commit is contained in:
Sandro
2021-04-22 03:27:36 +02:00
committed by GitHub
43 changed files with 758 additions and 85 deletions

View File

@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pkgs
@@ -18,7 +19,9 @@ buildPythonPackage rec {
# No tests included
doCheck = false;
patchPhase = ''
# On macOS, users are expected to install macFUSE. This means fusepy should
# be able to find libfuse in /usr/local/lib.
patchPhase = lib.optionalString (!stdenv.isDarwin) ''
substituteInPlace fuse.py --replace \
"find_library('fuse')" "'${pkgs.fuse}/lib/libfuse.so'"
'';