mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
Merge pull request #113968 from fasheng/fix-hashcat-opencl-for-rocm
hashcat: Fix OpenCL support for ROCm
This commit is contained in:
commit
90c394b82b
@ -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 New Issue
Block a user