summary refs log tree commit diff
path: root/pkgs/tools/security/john
diff options
context:
space:
mode:
authorDaniel Fullmer <danielrf12@gmail.com>2017-09-01 11:02:38 -0400
committerDaniel Fullmer <danielrf12@gmail.com>2017-09-01 11:05:01 -0400
commit28b1170f492da51c95277e0868d14182d4ce0e6c (patch)
tree54ffb5154b3c606419bc2025eaccb74281766722 /pkgs/tools/security/john
parent86e6e8016d0f9280167745c19d394311be0f9002 (diff)
downloadnixpkgs-28b1170f492da51c95277e0868d14182d4ce0e6c.tar
nixpkgs-28b1170f492da51c95277e0868d14182d4ce0e6c.tar.gz
nixpkgs-28b1170f492da51c95277e0868d14182d4ce0e6c.tar.bz2
nixpkgs-28b1170f492da51c95277e0868d14182d4ce0e6c.tar.lz
nixpkgs-28b1170f492da51c95277e0868d14182d4ce0e6c.tar.xz
nixpkgs-28b1170f492da51c95277e0868d14182d4ce0e6c.tar.zst
nixpkgs-28b1170f492da51c95277e0868d14182d4ce0e6c.zip
john: workaroud for build failure
Diffstat (limited to 'pkgs/tools/security/john')
-rw-r--r--pkgs/tools/security/john/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/security/john/default.nix b/pkgs/tools/security/john/default.nix
index f5d253af9ff..37946b940cf 100644
--- a/pkgs/tools/security/john/default.nix
+++ b/pkgs/tools/security/john/default.nix
@@ -26,7 +26,13 @@ stdenv.mkDerivation rec {
     }' run/*.conf
   '';
 
-  preConfigure = "cd src";
+  preConfigure = ''
+    cd src
+    # Makefile.in depends on AS and LD being set to CC, which is set by default in configure.ac.
+    # This ensures we override the environment variables set in cc-wrapper/setup-hook.sh
+    export AS=$CC
+    export LD=$CC
+  '';
   configureFlags = [ "--disable-native-macro" ];
 
   buildInputs = [ openssl nss nspr kerberos gmp zlib libpcap re2 gcc ];