From 85c2492655b0341196cdbe993e06779f74e6f761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Sat, 20 May 2023 15:32:18 +1000 Subject: [PATCH] haskellPackages.gauge: fix darwin build Include unreleased patch which is already merged upstream to fix the aarch64 darwin build. --- pkgs/development/haskell-modules/configuration-common.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 6732980273e5..dff357eb4e95 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2663,4 +2663,12 @@ self: super: { parsec = lself.parsec_3_1_16_1; text = lself.text_2_0_2; })); + + # Merged upstream, but never released. Allows both intel and aarch64 darwin to build. + # https://github.com/vincenthz/hs-gauge/pull/106 + gauge = appendPatch (pkgs.fetchpatch { + name = "darwin-aarch64-fix.patch"; + url = "https://github.com/vincenthz/hs-gauge/commit/3d7776f41187c70c4f0b4517e6a7dde10dc02309.patch"; + hash = "sha256-4osUMo0cvTvyDTXF8lY9tQbFqLywRwsc3RkHIhqSriQ="; + }) super.gauge; } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super