mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
b81124b4fb
It's necessary to do this in order to fix ckb's compilation, now that fixupPhase rejects derivation results containing references to the temporary build directory. It seems like good practice so I've added it to the other packages that I maintain.
38 lines
1,003 B
Nix
38 lines
1,003 B
Nix
{ stdenv, fetchurl, makeWrapper, opencl-headers, ocl-icd }:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "hashcat-${version}";
|
|
version = "3.10";
|
|
|
|
src = fetchurl {
|
|
name = "${name}.tar.gz";
|
|
url = "https://hashcat.net/files_legacy/hashcat-${version}.tar.gz";
|
|
sha256 = "1sg30d9as6xsl7b0i7mz26igachbv0l0yimwb12nmarmgdgmwm9v";
|
|
};
|
|
|
|
buildInputs = [ opencl-headers makeWrapper ];
|
|
|
|
makeFlags = [ "OPENCL_HEADERS_KHRONOS=${opencl-headers}/include" ];
|
|
|
|
# $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
|
|
'';
|
|
|
|
meta = {
|
|
description = "Fast password cracker";
|
|
homepage = http://hashcat.net/hashcat/;
|
|
license = stdenv.lib.licenses.mit;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.kierdavis ];
|
|
};
|
|
}
|