Merge pull request #145655 from alyssais/python-llfuse-cross

python3.pkgs.llfuse: fix cross
This commit is contained in:
Guillaume Girol 2021-11-21 21:06:02 +00:00 committed by GitHub
commit 8612c1c07f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,8 +31,13 @@ buildPythonPackage rec {
propagatedBuildInputs = [ contextlib2 ];
preConfigure = ''
substituteInPlace setup.py \
--replace "'pkg-config'" "'${stdenv.cc.targetPrefix}pkg-config'"
'';
preBuild = ''
${python.interpreter} setup.py build_cython
${python.pythonForBuild.interpreter} setup.py build_cython
'';
# On Darwin, the test requires macFUSE to be installed outside of Nix.