john: format with nixfmt-rfc-style
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
{ lib, stdenv, fetchFromGitHub, openssl, nss, nspr, libkrb5, gmp, zlib, libpcap, re2
|
||||
, gcc, python3Packages, perl, perlPackages, makeWrapper, }:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
openssl,
|
||||
nss,
|
||||
nspr,
|
||||
libkrb5,
|
||||
gmp,
|
||||
zlib,
|
||||
libpcap,
|
||||
re2,
|
||||
gcc,
|
||||
python3Packages,
|
||||
perl,
|
||||
perlPackages,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "john";
|
||||
@@ -35,13 +51,40 @@ stdenv.mkDerivation rec {
|
||||
"--with-systemwide"
|
||||
];
|
||||
|
||||
buildInputs = [ openssl nss nspr libkrb5 gmp zlib libpcap re2 ];
|
||||
nativeBuildInputs = [ gcc python3Packages.wrapPython perl makeWrapper ];
|
||||
propagatedBuildInputs = (with python3Packages; [ dpkt scapy lxml ]) ++ # For pcap2john.py
|
||||
(with perlPackages; [ DigestMD4 DigestSHA1 GetoptLong # For pass_gen.pl
|
||||
CompressRawLzma # For 7z2john.pl
|
||||
perlldap ]); # For sha-dump.pl
|
||||
# TODO: Get dependencies for radius2john.pl and lion2john-alt.pl
|
||||
buildInputs = [
|
||||
openssl
|
||||
nss
|
||||
nspr
|
||||
libkrb5
|
||||
gmp
|
||||
zlib
|
||||
libpcap
|
||||
re2
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
gcc
|
||||
python3Packages.wrapPython
|
||||
perl
|
||||
makeWrapper
|
||||
];
|
||||
propagatedBuildInputs =
|
||||
# For pcap2john.py
|
||||
(with python3Packages; [
|
||||
dpkt
|
||||
scapy
|
||||
lxml
|
||||
])
|
||||
++ (with perlPackages; [
|
||||
# For pass_gen.pl
|
||||
DigestMD4
|
||||
DigestSHA1
|
||||
GetoptLong
|
||||
# For 7z2john.pl
|
||||
CompressRawLzma
|
||||
# For sha-dump.pl
|
||||
perlldap
|
||||
]);
|
||||
# TODO: Get dependencies for radius2john.pl and lion2john-alt.pl
|
||||
|
||||
# gcc -DAC_BUILT -Wall vncpcap2john.o memdbg.o -g -lpcap -fopenmp -o ../run/vncpcap2john
|
||||
# gcc: error: memdbg.o: No such file or directory
|
||||
@@ -70,7 +113,11 @@ stdenv.mkDerivation rec {
|
||||
description = "John the Ripper password cracker";
|
||||
license = licenses.gpl2Plus;
|
||||
homepage = "https://github.com/openwall/john/";
|
||||
maintainers = with maintainers; [ offline matthewbauer cherrykitten ];
|
||||
maintainers = with maintainers; [
|
||||
offline
|
||||
matthewbauer
|
||||
cherrykitten
|
||||
];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user