summary refs log tree commit diff
path: root/pkgs/tools/security/john/default.nix
blob: 97f67dfbd71f741a592d163b044a62bafaa49c55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchgit, openssl, nss, nspr, krb5, gmp, zlib, libpcap, re2 }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "JohnTheRipper-${version}";
  version = "8a3e3c1d";
  buildInputs = [ openssl nss nspr krb5 gmp zlib libpcap re2 ];
  preConfigure = ''cd src'';
  installPhase = ''
    ensureDir $out/share/john/
    ensureDir $out/bin
    cp -R ../run/* $out/share/john
    ln -s $out/share/john/john $out/bin/john
  '';
  src = fetchgit {
    url = https://github.com/magnumripper/JohnTheRipper.git;
    rev = "93f061bc41652c94ae049b52572aac709d18aa4c";
    sha256 = "1rnfi09830n34jcqaxmsam54p4zsq9a49ic2ljh44lahcipympvy";
  };
  meta = {
    description = "John the Ripper password cracker";
    license = licenses.gpl2;
    homepage = https://github.com/magnumripper/JohnTheRipper/;
    maintainers = with maintainers; [offline];
    platforms = with platforms; unix;
  };
}