about summary refs log tree commit diff
path: root/pkgs/tools/security/snowcrash
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2022-08-14 22:54:27 -0700
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2022-08-15 08:30:31 -0700
commit18124282d27b0e9b64aef4092122dad0699312ba (patch)
tree48718e523a08b1fbaf47861c2bceb33ed87e4490 /pkgs/tools/security/snowcrash
parent849d7b651405d644a9d199e4e3b169bc59255e0a (diff)
snowcrash: fix on aarch64-darwin
Picks up a patch that updates golang.org/x/sys so that it can be built
on aarch64-darwin using Go 1.18.
Diffstat (limited to 'pkgs/tools/security/snowcrash')
-rw-r--r--pkgs/tools/security/snowcrash/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/tools/security/snowcrash/default.nix b/pkgs/tools/security/snowcrash/default.nix
index 087c6af1e6067..be4380cb9188b 100644
--- a/pkgs/tools/security/snowcrash/default.nix
+++ b/pkgs/tools/security/snowcrash/default.nix
@@ -2,6 +2,7 @@
 , stdenv
 , buildGoModule
 , fetchFromGitHub
+, fetchpatch
 }:
 
 buildGoModule rec {
@@ -12,10 +13,18 @@ buildGoModule rec {
     owner = "redcode-labs";
     repo = "SNOWCRASH";
     rev = "514cceea1ca82f44e0c8a8744280f3a16abb6745";
-    sha256 = "16p1nfi9zdlcffjyrk1phrippjqrdzf3cpc51dgdy3bfr7pds2ld";
+    sha256 = "sha256-jQrd7sluDd9eC4VdNtxvGct7Y4Y3zOylc4y2n6Kz4Zo=";
   };
 
-  vendorSha256 = "sha256-YryQKLHwUDhR/Z7eWfCdL86Z83GrqBTvdGGj+dGKvjI";
+  patches = [
+    (fetchpatch {
+      name = "update-x-sys-for-go-1.18-on-aarch64-darwin.patch";
+      url = "https://github.com/redcode-labs/SNOWCRASH/commit/24eefdcc944ade0cf435f7f35dee59ef3f0497fd.patch";
+      sha256 = "sha256-UXk7cMyEVAVcOkELcC9TlQNppZOXIvn6DBYu1j2iVNg=";
+    })
+  ];
+
+  vendorSha256 = "sha256-WTDE+MYL8CjeNvGHRNiMgBFrydDJWIcG8TYvbQTH/6o=";
 
   subPackages = [ "." ];