8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
34 lines
892 B
Nix
34 lines
892 B
Nix
{ stdenv, fetchurl, makeWrapper, opencl-headers, ocl-icd, xxHash }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hashcat";
|
|
version = "5.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://hashcat.net/files/hashcat-${version}.tar.gz";
|
|
sha256 = "0f73y4cg8c7a6q7x34qvpfi4g3lw6j9bnn0a13g43aqyiskflfr8";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|