From 16ec40b237b4a544f84e0618bc4cb8b9d27d13c1 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sun, 21 Jun 2026 15:12:12 -0400 Subject: [PATCH] fix: use python3 + preConfigure symlink for john cross-compile (python not in PATH) --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 04903ee..321a795 100644 --- a/flake.nix +++ b/flake.nix @@ -188,8 +188,14 @@ # Strip it from john deps -- the perl scripts that need it are not critical john = prev.john.overrideAttrs (old: { nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ - prev.buildPackages.python # opencl_generate_dynamic_loader.py needs python + prev.buildPackages.python3 # opencl_generate_dynamic_loader.py needs python3 ]; + preConfigure = (old.preConfigure or '') + '' + # configure script calls 'python' not 'python3' + mkdir -p "$TMPDIR/bin" + ln -sf "${prev.buildPackages.python3}/bin/python3" "$TMPDIR/bin/python" + export PATH="$TMPDIR/bin:$PATH" + ''; propagatedBuildInputs = builtins.filter (x: x?pname && x.pname != "perl-ldap") (old.propagatedBuildInputs or []);