2015-10-12 18:29:52 +00:00
|
|
|
{ stdenv, fetchurl, openssl, nss, nspr, kerberos, gmp, zlib, libpcap, re2 }:
|
2014-09-03 23:30:04 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-10-12 18:29:52 +00:00
|
|
|
name = "john-${version}";
|
|
|
|
version = "1.8.0-jumbo-1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.openwall.com/john/j/${name}.tar.xz";
|
|
|
|
sha256 = "08q92sfdvkz47rx6qjn7qv57cmlpy7i7rgddapq5384mb413vjds";
|
|
|
|
};
|
|
|
|
|
2014-12-30 08:05:12 +00:00
|
|
|
buildInputs = [ openssl nss nspr kerberos gmp zlib libpcap re2 ];
|
2015-10-12 18:29:52 +00:00
|
|
|
|
2014-12-11 22:24:20 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DJOHN_SYSTEMWIDE=1";
|
2015-10-12 18:29:52 +00:00
|
|
|
|
|
|
|
preConfigure = "cd src";
|
2015-10-13 02:02:56 +00:00
|
|
|
configureFlags = [ "--disable-native-macro" ];
|
2015-10-12 18:29:52 +00:00
|
|
|
|
2014-09-03 23:30:04 +00:00
|
|
|
installPhase = ''
|
2015-10-12 18:29:52 +00:00
|
|
|
mkdir -p "$out/share/john"
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp -R ../run/* "$out/share/john"
|
|
|
|
ln -s "$out/share/john/john" "$out/bin/john"
|
2014-09-03 23:30:04 +00:00
|
|
|
'';
|
2015-10-12 18:29:52 +00:00
|
|
|
|
2014-09-03 23:30:04 +00:00
|
|
|
meta = {
|
|
|
|
description = "John the Ripper password cracker";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = https://github.com/magnumripper/JohnTheRipper/;
|
2015-10-12 18:29:52 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2014-09-03 23:30:04 +00:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|