diff options
author | Felix Albrigtsen <felix@albrigtsen.it> | 2023-08-31 13:04:55 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-09-08 08:25:13 +0200 |
commit | bcfcff9ad15c6bbb4147655d9281b393250038b5 (patch) | |
tree | 29e54c891c73eda8b9f9392cac038c7839f88b84 /pkgs/tools/security/hashcat/default.nix | |
parent | 7cbc8215fdaa0bee878327f8edebbef2c19e62a9 (diff) |
hashcat: patch to build on apple silicon
Diffstat (limited to 'pkgs/tools/security/hashcat/default.nix')
-rw-r--r-- | pkgs/tools/security/hashcat/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/security/hashcat/default.nix b/pkgs/tools/security/hashcat/default.nix index 0fec2a9ec9925..5a2304b5fd0bf 100644 --- a/pkgs/tools/security/hashcat/default.nix +++ b/pkgs/tools/security/hashcat/default.nix @@ -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 ]; }; } |