diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2016-08-21 17:58:56 +0100 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2016-08-21 17:58:56 +0100 |
commit | cccdbf0bfd394817c47284fe33c4dd9e5752d285 (patch) | |
tree | 6ecfddb2b05fc5875054c4061ab7ed5e135007e6 /pkgs/tools/security/crunch | |
parent | 0b05a1607087644ce689a38b3c6a54b8b52b75a3 (diff) |
crunch: init at 3.6
Diffstat (limited to 'pkgs/tools/security/crunch')
-rw-r--r-- | pkgs/tools/security/crunch/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/security/crunch/default.nix b/pkgs/tools/security/crunch/default.nix new file mode 100644 index 0000000000000..914d79965c3e1 --- /dev/null +++ b/pkgs/tools/security/crunch/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, which }: + +stdenv.mkDerivation rec { + name = "crunch-${version}"; + version = "3.6"; + + src = fetchurl { + url = "mirror://sourceforge/crunch-wordlist/${name}.tgz"; + sha256 = "0mgy6ghjvzr26yrhj1bn73qzw6v9qsniskc5wqq1kk0hfhy6r3va"; + }; + + buildInputs = [ which ]; + + configurePhase = "true"; + + preBuild = '' + sed 's/sudo //' -i Makefile + sed 's/-g root -o root//' -i Makefile + ''; + + makeFlags = "PREFIX=$(out)"; + + meta = with stdenv.lib; { + description = "Wordlist generator"; + homepage = https://sourceforge.net/projects/crunch-wordlist/; + platforms = platforms.linux; + maintainers = [ maintainers.lethalman ]; + }; +} |