67a86f7813
Upstream has moved 4.0.0 into https://hashcat.net/files_legacy/hashcat-4.0.0.7z
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ stdenv, fetchurl, makeWrapper, opencl-headers, ocl-icd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "hashcat-${version}";
|
|
version = "4.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://hashcat.net/files/hashcat-${version}.tar.gz";
|
|
sha256 = "1pafjwibppylfgs3rck6724dhd3vwwndb9lkc29gd64pxd3l98kz";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ opencl-headers ];
|
|
|
|
makeFlags = [
|
|
"OPENCL_HEADERS_KHRONOS=${opencl-headers}/include"
|
|
"COMPTIME=1337"
|
|
"VERSION_TAG=${version}"
|
|
];
|
|
|
|
# $out is not known until the build has started.
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
makeFlags="$makeFlags PREFIX=$out"
|
|
runHook postConfigure
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|