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 14:50:21 +0100
committersternenseemann <sternenseemann@systemli.org>2022-01-03 14:50:21 +0100
commit2341c7e485374eff7faa03136364f9ee93828826 (patch)
tree7c8e82e88cd0d5a8f87595e23f95f904fc52fc55 /pkgs/development/haskell-modules/configuration-darwin.nix
parent4acff2bbdedb6892f4fe6225d77aa184a4500a82 (diff)
downloadnixpkgs-2341c7e485374eff7faa03136364f9ee93828826.tar
nixpkgs-2341c7e485374eff7faa03136364f9ee93828826.tar.gz
nixpkgs-2341c7e485374eff7faa03136364f9ee93828826.tar.bz2
nixpkgs-2341c7e485374eff7faa03136364f9ee93828826.tar.lz
nixpkgs-2341c7e485374eff7faa03136364f9ee93828826.tar.xz
nixpkgs-2341c7e485374eff7faa03136364f9ee93828826.tar.zst
nixpkgs-2341c7e485374eff7faa03136364f9ee93828826.zip
haskellPackages.http-client-tls: force rebuild on darwin
Currently everything seems like the derivation's outPath has been
corrupted somehow, causing reverse dependencies to fail. Since we can't
purge store paths from Hydra and the binary cache easily at the moment,
we just make the derivation hash change by inserting an unsubstantial
change, causing Hydra to build this package and all reverse dependencies
again — hopefully successfully this time around.
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 5248523e0cd..367cd5a1aca 100644
--- a/pkgs/development/haskell-modules/configuration-darwin.nix
+++ b/pkgs/development/haskell-modules/configuration-darwin.nix
@@ -256,6 +256,18 @@ self: super: ({
     ] ++ (drv.libraryFrameworkDepends or []);
   }) super.streamly_0_8_1_1;
 
+  http-client-tls = 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.http-client-tls;
+
 } // lib.optionalAttrs pkgs.stdenv.isAarch64 {  # aarch64-darwin
 
   # https://github.com/fpco/unliftio/issues/87