fix: clean john overlay with python3 + preConfigure symlink for cross-compile

This commit is contained in:
2026-06-21 15:15:01 -04:00
parent 16ec40b237
commit 8ec9ffe6a9

View File

@@ -188,13 +188,12 @@
# Strip it from john deps -- the perl scripts that need it are not critical # Strip it from john deps -- the perl scripts that need it are not critical
john = prev.john.overrideAttrs (old: { john = prev.john.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ nativeBuildInputs = (old.nativeBuildInputs or []) ++ [
prev.buildPackages.python3 # opencl_generate_dynamic_loader.py needs python3 prev.buildPackages.python3 # python3 for opencl_generate_dynamic_loader.py
]; ];
preConfigure = (old.preConfigure or '') + '' preConfigure = (old.preConfigure or "") + '''
# configure script calls 'python' not 'python3' mkdir -p /tmp/jh-python
mkdir -p "$TMPDIR/bin" ln -sf ${prev.buildPackages.python3}/bin/python3 /tmp/jh-python/python
ln -sf "${prev.buildPackages.python3}/bin/python3" "$TMPDIR/bin/python" export PATH=/tmp/jh-python:$PATH
export PATH="$TMPDIR/bin:$PATH"
''; '';
propagatedBuildInputs = builtins.filter propagatedBuildInputs = builtins.filter
(x: x?pname && x.pname != "perl-ldap") (x: x?pname && x.pname != "perl-ldap")