Merge pull request #113968 from fasheng/fix-hashcat-opencl-for-rocm

hashcat: Fix OpenCL support for ROCm
This commit is contained in:
Daniël de Kok 2021-02-22 07:23:56 +01:00 committed by GitHub
commit 90c394b82b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';