From 2341c7e485374eff7faa03136364f9ee93828826 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 3 Jan 2022 14:50:21 +0100 Subject: [PATCH] haskellPackages.http-client-tls: force rebuild on darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../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 5248523e0cd1..367cd5a1aca3 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