diff options
author | Rafael Fernández López <ereslibre@ereslibre.es> | 2022-12-13 18:53:22 +0100 |
---|---|---|
committer | Rafael Fernández López <ereslibre@ereslibre.es> | 2022-12-13 21:27:08 +0100 |
commit | 2c78bbbbb45e4854cf714968cdc293c3f31ceba4 (patch) | |
tree | 064f08cfb18e4eb766e02bb2c6bf5892d814498b /pkgs/tools/virtualization | |
parent | 67e9326903dd3b26669dbcb947b50cc943e69913 (diff) |
reg: Fix aarch64-darwin build
Diffstat (limited to 'pkgs/tools/virtualization')
-rw-r--r-- | pkgs/tools/virtualization/reg/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/tools/virtualization/reg/default.nix b/pkgs/tools/virtualization/reg/default.nix index a1b246aff0d3a..eaa937f6f3265 100644 --- a/pkgs/tools/virtualization/reg/default.nix +++ b/pkgs/tools/virtualization/reg/default.nix @@ -1,4 +1,5 @@ { lib +, fetchpatch , fetchFromGitHub , buildGoModule }: @@ -14,6 +15,20 @@ buildGoModule rec { sha256 = "1jlza1czfssssi3y9zi6kr8k9msfa7vp215ibhwbz4h97av5xw5m"; }; + patches = [ + # https://github.com/genuinetools/reg/pull/218 + (fetchpatch { + name = "update-x-sys-for-go-1.18-on-aarch64-darwin.patch"; + url = "https://github.com/genuinetools/reg/commit/f37b04ad8be47f1e68ef9b2c5906324d7096231e.patch"; + hash = "sha256-wmBjPdrpNpxx//I+d+k8DNR11TmyXxb84vXR/MrYHKA="; + }) + (fetchpatch { + name = "update-vendored-dependencies.patch"; + url = "https://github.com/genuinetools/reg/commit/8bb04bc3fd41c089716e65ee905c6feac8bda5a0.patch"; + hash = "sha256-5nZaayy0xu7sOJHVCp6AotINiF7vXk2Jic8SR8ZrH/g="; + }) + ]; + vendorSha256 = null; doCheck = false; |