3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/hashcat/default.nix

41 lines
897 B
Nix
Raw Normal View History

2020-06-19 11:36:08 +01:00
{ stdenv
, fetchurl
, makeWrapper
, opencl-headers
, ocl-icd
, xxHash
}:
stdenv.mkDerivation rec {
2019-05-28 09:51:43 +01:00
pname = "hashcat";
2020-08-01 16:37:09 +01:00
version = "6.1.1";
src = fetchurl {
url = "https://hashcat.net/files/hashcat-${version}.tar.gz";
2020-08-01 16:37:09 +01:00
sha256 = "104z63m7lqbb0sdrxhf9yi15l4a9zwf9m6zs9dbb3gf0nfxl1h9r";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ opencl-headers xxHash ];
makeFlags = [
2019-01-08 02:51:22 +00:00
"PREFIX=${placeholder "out"}"
"COMPTIME=1337"
"VERSION_TAG=${version}"
2019-05-28 09:51:43 +01:00
"USE_SYSTEM_OPENCL=1"
"USE_SYSTEM_XXHASH=1"
];
postFixup = ''
wrapProgram $out/bin/hashcat --prefix LD_LIBRARY_PATH : ${ocl-icd}/lib
'';
meta = with stdenv.lib; {
description = "Fast password cracker";
homepage = "https://hashcat.net/hashcat/";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ kierdavis zimbatm ];
};
}