haskellPackages.foldl: force rebuild on darwin

See comment and message for 2341c7e485.
This commit is contained in:
sternenseemann 2022-01-03 16:31:32 +01:00
parent 2341c7e485
commit 187ac25b8e

View file

@ -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