uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
48
pkgs/tools/security/hashcat/default.nix
Normal file
48
pkgs/tools/security/hashcat/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
, opencl-headers
|
||||
, ocl-icd
|
||||
, xxHash
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hashcat";
|
||||
version = "6.2.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://hashcat.net/files/hashcat-${version}.tar.gz";
|
||||
sha256 = "sha256-b2iZ162Jlln3tDpNaAmFQ6tUbSFx+OUdaR0Iplk3iWk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ opencl-headers xxHash ];
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=${placeholder "out"}"
|
||||
"COMPTIME=1337"
|
||||
"VERSION_TAG=${version}"
|
||||
"USE_SYSTEM_OPENCL=1"
|
||||
"USE_SYSTEM_XXHASH=1"
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
for f in $out/share/hashcat/OpenCL/*.cl; do
|
||||
# Rewrite files to be included for compilation at runtime for opencl offload
|
||||
sed "s|#include \"\(.*\)\"|#include \"$out/share/hashcat/OpenCL/\1\"|g" -i "$f"
|
||||
sed "s|#define COMPARE_\([SM]\) \"\(.*\.cl\)\"|#define COMPARE_\1 \"$out/share/hashcat/OpenCL/\2\"|g" -i "$f"
|
||||
done
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/hashcat --prefix LD_LIBRARY_PATH : ${ocl-icd}/lib
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast password cracker";
|
||||
homepage = "https://hashcat.net/hashcat/";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ kierdavis zimbatm ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue