summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniƫl de Kok <me@danieldk.eu>2021-02-22 07:23:56 +0100
committerGitHub <noreply@github.com>2021-02-22 07:23:56 +0100
commit90c394b82b40766a6ebf358017cbcfa120c0accb (patch)
tree32329aa4e3a3f9d15b52574403fda02f2d7a7bc7
parent9552143266c0158917d94d88c4ed039e94d2d170 (diff)
parentc1d56239b8fb7754c71ebf6f85cac98d188ffc0b (diff)
downloadnixpkgs-90c394b82b40766a6ebf358017cbcfa120c0accb.tar
nixpkgs-90c394b82b40766a6ebf358017cbcfa120c0accb.tar.gz
nixpkgs-90c394b82b40766a6ebf358017cbcfa120c0accb.tar.bz2
nixpkgs-90c394b82b40766a6ebf358017cbcfa120c0accb.tar.lz
nixpkgs-90c394b82b40766a6ebf358017cbcfa120c0accb.tar.xz
nixpkgs-90c394b82b40766a6ebf358017cbcfa120c0accb.tar.zst
nixpkgs-90c394b82b40766a6ebf358017cbcfa120c0accb.zip
Merge pull request #113968 from fasheng/fix-hashcat-opencl-for-rocm
hashcat: Fix OpenCL support for ROCm
-rw-r--r--pkgs/tools/security/hashcat/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/security/hashcat/default.nix b/pkgs/tools/security/hashcat/default.nix
index 20b5aed3932..173fdc8b18d 100644
--- a/pkgs/tools/security/hashcat/default.nix
+++ b/pkgs/tools/security/hashcat/default.nix
@@ -26,6 +26,12 @@ stdenv.mkDerivation rec {
     "USE_SYSTEM_XXHASH=1"
   ];
 
+  preFixup = ''
+    for f in $out/share/hashcat/OpenCL/*.cl; do
+      sed "s|#include \"\(.*\)\"|#include \"$out/share/hashcat/OpenCL/\1\"|g" -i "$f"
+    done
+  '';
+
   postFixup = ''
     wrapProgram $out/bin/hashcat --prefix LD_LIBRARY_PATH : ${ocl-icd}/lib
   '';