From 7d4f75ca88feccc23fd827bff4e875ade695e995 Mon Sep 17 00:00:00 2001 From: Emily Trau Date: Fri, 14 Feb 2025 22:26:53 +1100 Subject: [PATCH] hashcat: use system zlib, fix darwin build --- pkgs/tools/security/hashcat/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/security/hashcat/default.nix b/pkgs/tools/security/hashcat/default.nix index 03e99733500b..d3eda42db806 100644 --- a/pkgs/tools/security/hashcat/default.nix +++ b/pkgs/tools/security/hashcat/default.nix @@ -7,9 +7,11 @@ cudaSupport ? config.cudaSupport, fetchurl, makeWrapper, + minizip, opencl-headers, ocl-icd, xxHash, + zlib, Foundation, IOKit, Metal, @@ -46,8 +48,10 @@ stdenv.mkDerivation rec { buildInputs = [ + minizip opencl-headers xxHash + zlib ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Foundation @@ -64,6 +68,7 @@ stdenv.mkDerivation rec { "VERSION_TAG=${version}" "USE_SYSTEM_OPENCL=1" "USE_SYSTEM_XXHASH=1" + "USE_SYSTEM_ZLIB=1" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform) [ "IS_APPLE_SILICON='${if stdenv.hostPlatform.isAarch64 then "1" else "0"}'"