git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #75107 from matthewbauer/disable-native-tests-john

Disable native tests for john the ripper

commitceb1e9217322aa69b982ec69bb973d8401022f69 authorMatthew Bauer <mjbauer95@gmail.com> dateFri 6 Dec 2019, 15:32 (7 years ago) parentb5d04f6a36c36a
1 file changed+6−5
pkgs/tools/security/john/default.nix+6−5
pkgs/tools/security/john/default.nix+6−5
@@ -31,7 +31,10 @@ stdenv.mkDerivation rec {
3131 export AS=$CC
3232 export LD=$CC
3333 '';
34− configureFlags = [ "--disable-native-macro" ];
34+ configureFlags = [
35+ "--disable-native-tests"
36+ "--with-systemwide"
37+ ];
3538
3639 buildInputs = [ openssl nss nspr kerberos gmp zlib libpcap re2 ];
3740 nativeBuildInputs = [ gcc python3Packages.wrapPython perl makeWrapper ];
@@ -44,8 +47,6 @@ stdenv.mkDerivation rec {
4447 # gcc: error: memdbg.o: No such file or directory
4548 enableParallelBuilding = false;
4649
47− NIX_CFLAGS_COMPILE = [ "-DJOHN_SYSTEMWIDE=1" ];
48−
4950 postInstall = ''
5051 mkdir -p "$out/bin" "$out/etc/john" "$out/share/john" "$out/share/doc/john" "$out/share/john/rules"
5152 find -L ../run -mindepth 1 -maxdepth 1 -type f -executable \
@@ -68,7 +69,7 @@ stdenv.mkDerivation rec {
6869 description = "John the Ripper password cracker";
6970 license = licenses.gpl2;
7071 homepage = https://github.com/magnumripper/JohnTheRipper/;
71− maintainers = with maintainers; [ offline ];
72− platforms = [ "x86_64-linux" "x86_64-darwin"];
72+ maintainers = with maintainers; [ offline matthewbauer ];
73+ platforms = platforms.unix;
7374 };
7475}