40 lines
897 B
Nix
40 lines
897 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, makeWrapper
|
|
, opencl-headers
|
|
, ocl-icd
|
|
, xxHash
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hashcat";
|
|
version = "6.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://hashcat.net/files/hashcat-${version}.tar.gz";
|
|
sha256 = "118jxk4xh55m1vhaz5h2j2385mp4p397m16g9hi4x2k0b8m0zrz8";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ opencl-headers xxHash ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
"COMPTIME=1337"
|
|
"VERSION_TAG=${version}"
|
|
"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 ];
|
|
};
|
|
}
|