9 stdenv.mkDerivation rec {
14 url = "https://hashcat.net/files/hashcat-${version}.tar.gz";
15 sha256 = "sha256-sl4Qd7zzSQjMjxjBppouyYsEeyy88PURRNzzuh4Leyo=";
18 nativeBuildInputs = [ makeWrapper ];
19 buildInputs = [ opencl-headers xxHash ];
22 "PREFIX=${placeholder "out"}"
24 "VERSION_TAG=${version}"
30 for f in $out/share/hashcat/OpenCL/*.cl; do
31 # Rewrite files to be included for compilation at runtime for opencl offload
32 sed "s|#include \"\(.*\)\"|#include \"$out/share/hashcat/OpenCL/\1\"|g" -i "$f"
33 sed "s|#define COMPARE_\([SM]\) \"\(.*\.cl\)\"|#define COMPARE_\1 \"$out/share/hashcat/OpenCL/\2\"|g" -i "$f"
38 wrapProgram $out/bin/hashcat --prefix LD_LIBRARY_PATH : ${ocl-icd}/lib
42 description = "Fast password cracker";
43 homepage = "https://hashcat.net/hashcat/";
44 license = licenses.mit;
45 platforms = platforms.linux;
46 maintainers = with maintainers; [ kierdavis zimbatm ];