fusepy: fix incorrect libfuse path on darwin

This commit is contained in:
midchildan 2021-03-28 01:54:55 +09:00
parent 24466250ec
commit 701288f79a
No known key found for this signature in database
GPG Key ID: D9A5748BACC6E3C2

View File

@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pkgs , pkgs
@ -18,7 +19,9 @@ buildPythonPackage rec {
# No tests included # No tests included
doCheck = false; 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 \ substituteInPlace fuse.py --replace \
"find_library('fuse')" "'${pkgs.fuse}/lib/libfuse.so'" "find_library('fuse')" "'${pkgs.fuse}/lib/libfuse.so'"
''; '';