From cccdbf0bfd394817c47284fe33c4dd9e5752d285 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Sun, 21 Aug 2016 17:58:56 +0100 Subject: [PATCH] crunch: init at 3.6 --- pkgs/tools/security/crunch/default.nix | 29 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/security/crunch/default.nix diff --git a/pkgs/tools/security/crunch/default.nix b/pkgs/tools/security/crunch/default.nix new file mode 100644 index 000000000000..914d79965c3e --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fded25cd70f1..1d40851b216e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -730,6 +730,8 @@ in coturn = callPackage ../servers/coturn { }; + crunch = callPackage ../tools/security/crunch { }; + daemontools = callPackage ../tools/admin/daemontools { }; datamash = callPackage ../tools/misc/datamash { };