Merge pull request #113968 from fasheng/fix-hashcat-opencl-for-rocm
hashcat: Fix OpenCL support for ROCm
This commit is contained in:
commit
90c394b82b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue