From dfa4b89852833d080a5b35d6ac9f9b997e198ec5 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 13 Nov 2022 23:29:12 +0100 Subject: [PATCH] build: fix build on aarch64-darwin --- pkgs/applications/blockchains/alfis/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/blockchains/alfis/default.nix b/pkgs/applications/blockchains/alfis/default.nix index 677915066eb07..c3971ae41e1a3 100644 --- a/pkgs/applications/blockchains/alfis/default.nix +++ b/pkgs/applications/blockchains/alfis/default.nix @@ -2,6 +2,7 @@ , lib , rustPlatform , fetchFromGitHub +, fetchpatch , pkg-config , makeWrapper , webkitgtk @@ -23,7 +24,15 @@ rustPlatform.buildRustPackage rec { sha256 = "sha256-QOKFnre5MW9EvrKrKBHWpOxi2fBKTDMhzCDX3ISd2cQ="; }; - cargoSha256 = "sha256-D+3HIyj1zbs5m8hwLpITS25u/wrRM5GfnwlUUuLX8DQ="; + cargoPatches = [ + (fetchpatch { + name = "bump-rust-web-view.patch"; + url = "https://github.com/Revertron/Alfis/commit/03b461a740ab6ccbacd576eafc7a3faf4a66648f.patch"; + sha256 = "sha256-CSqSMdVD31w7QxxXWtjKmqlaEirmbs1EVuiefSf1NKY="; + }) + ]; + + cargoSha256 = "sha256-B4xI++U6RCljXCyaOmNj/SwA6I16zoiZsgk2VTiKfkg="; checkFlags = [ # these want internet access, disable them