From aec294926940dbfda856f580b34f63aa0b041bf6 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 2 May 2023 23:15:15 +0200 Subject: [PATCH] haskellPackages.hercules-ci-agent: Work around corrupted file on cache.nixos.org Should this be fixed on cache.nixos.org instead? I would like that, but it won't be a complete fix, because the corrupted NAR has already been accepted onto a number of hosts, which would need to take manual action, if at all possible. Furthermore, I'd have to bother people who have presumably have more important things to do; things that actually have a lasting effect perhaps! --- pkgs/development/haskell-modules/configuration-nix.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index cd9abba308f5..2681418dc3d2 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -1015,6 +1015,14 @@ self: super: builtins.intersectAttrs super { hnix-store-core = super.hnix-store-core_0_6_1_0; }); + hercules-ci-api-core = + # 2023-05-02: Work around a corrupted file on cache.nixos.org. This is a hash for x86_64-linux. Remove when it has changed. + if super.hercules-ci-api-core.drvPath == "/nix/store/dgy3w43zypmdswc7a7zis0njgljqvnq0-hercules-ci-api-core-0.1.5.0.drv" + then super.hercules-ci-api-core.overrideAttrs (_: { + dummyAttr = 1; + }) + else super.hercules-ci-api-core; + hercules-ci-agent = super.hercules-ci-agent.override { nix = self.hercules-ci-cnix-store.passthru.nixPackage; }; hercules-ci-cnix-expr = addTestToolDepend pkgs.git (super.hercules-ci-cnix-expr.override { nix = self.hercules-ci-cnix-store.passthru.nixPackage; }); hercules-ci-cnix-store = (super.hercules-ci-cnix-store.override { nix = self.hercules-ci-cnix-store.passthru.nixPackage; }).overrideAttrs (_: {