hashcat: clean up with placeholder

This commit is contained in:
Jan Tojnar 2019-01-08 03:51:22 +01:00
parent 153c0bdb6a
commit 76d8df7b32
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -14,18 +14,12 @@ stdenv.mkDerivation rec {
buildInputs = [ opencl-headers xxHash ];
makeFlags = [
"PREFIX=${placeholder "out"}"
"OPENCL_HEADERS_KHRONOS=${opencl-headers}/include"
"COMPTIME=1337"
"VERSION_TAG=${version}"
];
# $out is not known until the build has started.
configurePhase = ''
runHook preConfigure
makeFlags="$makeFlags PREFIX=$out"
runHook postConfigure
'';
postFixup = ''
wrapProgram $out/bin/hashcat --prefix LD_LIBRARY_PATH : ${ocl-icd}/lib
'';