lol
at 15.09-beta 29 lines 943 B view raw
1{ stdenv, fetchgit, openssl, nss, nspr, kerberos, gmp, zlib, libpcap, re2 }: 2 3with stdenv.lib; 4 5stdenv.mkDerivation rec { 6 name = "JohnTheRipper-${version}"; 7 version = "8a3e3c1d"; 8 buildInputs = [ openssl nss nspr kerberos gmp zlib libpcap re2 ]; 9 NIX_CFLAGS_COMPILE = "-DJOHN_SYSTEMWIDE=1"; 10 preConfigure = ''cd src''; 11 installPhase = '' 12 ensureDir $out/share/john/ 13 ensureDir $out/bin 14 cp -R ../run/* $out/share/john 15 ln -s $out/share/john/john $out/bin/john 16 ''; 17 src = fetchgit { 18 url = https://github.com/magnumripper/JohnTheRipper.git; 19 rev = "93f061bc41652c94ae049b52572aac709d18aa4c"; 20 sha256 = "1rnfi09830n34jcqaxmsam54p4zsq9a49ic2ljh44lahcipympvy"; 21 }; 22 meta = { 23 description = "John the Ripper password cracker"; 24 license = licenses.gpl2; 25 homepage = https://github.com/magnumripper/JohnTheRipper/; 26 maintainers = with maintainers; [offline]; 27 platforms = with platforms; unix; 28 }; 29}