hashcat: use system zlib, fix darwin build
This commit is contained in:
parent
0bf9d5035b
commit
7d4f75ca88
@ -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"}'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user