fix: use configureFlags to set PYTHON path for john cross-compile
This commit is contained in:
@@ -190,11 +190,9 @@
|
||||
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [
|
||||
prev.buildPackages.python3 # python3 for opencl_generate_dynamic_loader.py
|
||||
];
|
||||
preConfigure = (old.preConfigure or "") + '''
|
||||
mkdir -p /tmp/jh-python
|
||||
ln -sf ${prev.buildPackages.python3}/bin/python3 /tmp/jh-python/python
|
||||
export PATH=/tmp/jh-python:$PATH
|
||||
'';
|
||||
configureFlags = (old.configureFlags or []) ++ [
|
||||
"ac_cv_prog_PYTHON=${prev.buildPackages.python3}/bin/python3"
|
||||
];
|
||||
propagatedBuildInputs = builtins.filter
|
||||
(x: x?pname && x.pname != "perl-ldap")
|
||||
(old.propagatedBuildInputs or []);
|
||||
|
||||
Reference in New Issue
Block a user