diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-03-10 18:21:59 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-03-10 18:21:59 +0000 |
commit | 1c679b809d4fff45377572ad6e259a3a09c5401e (patch) | |
tree | d81bd2ec62a5cbd7fc18ac940ab4f51f4222c0e3 /pkgs/tools/security/crunch | |
parent | 3c935c73e03b27e45d99f127f83848b807e60d7b (diff) |
crunch: fix cross
Diffstat (limited to 'pkgs/tools/security/crunch')
-rw-r--r-- | pkgs/tools/security/crunch/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/security/crunch/default.nix b/pkgs/tools/security/crunch/default.nix index df1d50c60fadc..d287fb32fb670 100644 --- a/pkgs/tools/security/crunch/default.nix +++ b/pkgs/tools/security/crunch/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "0mgy6ghjvzr26yrhj1bn73qzw6v9qsniskc5wqq1kk0hfhy6r3va"; }; - buildInputs = [ which ]; + nativeBuildInputs = [ which ]; preBuild = '' substituteInPlace Makefile \ @@ -18,7 +18,10 @@ stdenv.mkDerivation rec { --replace 'sudo ' "" ''; - makeFlags = [ "PREFIX=$(out)" ]; + makeFlags = [ + "CC=${stdenv.cc.targetPrefix}cc" + "PREFIX=$(out)" + ]; meta = with lib; { description = "Wordlist generator"; |