From 187ac25b8e1176af0da7c655dd835bd14e528af9 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 3 Jan 2022 16:31:32 +0100 Subject: [PATCH] haskellPackages.foldl: force rebuild on darwin See comment and message for 2341c7e4853. --- .../haskell-modules/configuration-darwin.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 367cd5a1aca3..bfc6f1f35a2f 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