Merge pull request #253626 from felixalbrigtsen/patch-hashcat-applesilicon

hashcat: Patch building on Apple Silicon
This commit is contained in:
Weijia Wang 2023-09-08 14:28:47 +02:00 committed by GitHub
commit c8ff2fb01a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,8 @@ stdenv.mkDerivation rec {
"VERSION_TAG=${version}"
"USE_SYSTEM_OPENCL=1"
"USE_SYSTEM_XXHASH=1"
] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform) [
"IS_APPLE_SILICON='${if stdenv.hostPlatform.isAarch64 then "1" else "0"}'"
];
enableParallelBuilding = true;
@ -76,6 +78,6 @@ stdenv.mkDerivation rec {
homepage = "https://hashcat.net/hashcat/";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ kierdavis zimbatm ];
maintainers = with maintainers; [ felixalbrigtsen kierdavis zimbatm ];
};
}