about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-darwin.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-01-03 16:31:32 +0100
committersternenseemann <sternenseemann@systemli.org>2022-01-03 16:31:32 +0100
commit187ac25b8e1176af0da7c655dd835bd14e528af9 (patch)
tree3a45040b482beb5af82f44788d3ad87fde82fe49 /pkgs/development/haskell-modules/configuration-darwin.nix
parent2341c7e485374eff7faa03136364f9ee93828826 (diff)
haskellPackages.foldl: force rebuild on darwin
See comment and message for 2341c7e4853.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-darwin.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-darwin.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix
index 367cd5a1aca3c..bfc6f1f35a2fa 100644
--- a/pkgs/development/haskell-modules/configuration-darwin.nix
+++ b/pkgs/development/haskell-modules/configuration-darwin.nix
@@ -268,6 +268,18 @@ self: super: ({
     '' + drv.postPatch or "";
   }) super.http-client-tls;
 
+  foldl = overrideCabal (drv: {
+    postPatch = ''
+      # This comment has been inserted, so the derivation hash changes, forcing
+      # a rebuild of this derivation which has succeeded to build on Hydra before,
+      # but apparently been corrupted, causing reverse dependencies to fail.
+      #
+      # This workaround can be removed upon the next darwin stdenv rebuild,
+      # presumably https://github.com/NixOS/nixpkgs/pull/152850 or the next
+      # full haskellPackages rebuild.
+    '' + drv.postPatch or "";
+  }) super.foldl;
+
 } // lib.optionalAttrs pkgs.stdenv.isAarch64 {  # aarch64-darwin
 
   # https://github.com/fpco/unliftio/issues/87