fusepy: fix incorrect libfuse path on darwin
This commit is contained in:
parent
24466250ec
commit
701288f79a
|
@ -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'"
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue