hashcat: use system zlib, fix darwin build
This commit is contained in:
parent
0bf9d5035b
commit
7d4f75ca88
@ -7,9 +7,11 @@
|
|||||||
cudaSupport ? config.cudaSupport,
|
cudaSupport ? config.cudaSupport,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
|
minizip,
|
||||||
opencl-headers,
|
opencl-headers,
|
||||||
ocl-icd,
|
ocl-icd,
|
||||||
xxHash,
|
xxHash,
|
||||||
|
zlib,
|
||||||
Foundation,
|
Foundation,
|
||||||
IOKit,
|
IOKit,
|
||||||
Metal,
|
Metal,
|
||||||
@ -46,8 +48,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[
|
[
|
||||||
|
minizip
|
||||||
opencl-headers
|
opencl-headers
|
||||||
xxHash
|
xxHash
|
||||||
|
zlib
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
Foundation
|
Foundation
|
||||||
@ -64,6 +68,7 @@ stdenv.mkDerivation rec {
|
|||||||
"VERSION_TAG=${version}"
|
"VERSION_TAG=${version}"
|
||||||
"USE_SYSTEM_OPENCL=1"
|
"USE_SYSTEM_OPENCL=1"
|
||||||
"USE_SYSTEM_XXHASH=1"
|
"USE_SYSTEM_XXHASH=1"
|
||||||
|
"USE_SYSTEM_ZLIB=1"
|
||||||
]
|
]
|
||||||
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform) [
|
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform) [
|
||||||
"IS_APPLE_SILICON='${if stdenv.hostPlatform.isAarch64 then "1" else "0"}'"
|
"IS_APPLE_SILICON='${if stdenv.hostPlatform.isAarch64 then "1" else "0"}'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user