Skip to content

Commit aec2949

Browse files
committed
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!
1 parent e7d693a commit aec2949

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/development/haskell-modules/configuration-nix.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,14 @@ self: super: builtins.intersectAttrs super {
10151015
hnix-store-core = super.hnix-store-core_0_6_1_0;
10161016
});
10171017

1018+
hercules-ci-api-core =
1019+
# 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.
1020+
if super.hercules-ci-api-core.drvPath == "/nix/store/dgy3w43zypmdswc7a7zis0njgljqvnq0-hercules-ci-api-core-0.1.5.0.drv"
1021+
then super.hercules-ci-api-core.overrideAttrs (_: {
1022+
dummyAttr = 1;
1023+
})
1024+
else super.hercules-ci-api-core;
1025+
10181026
hercules-ci-agent = super.hercules-ci-agent.override { nix = self.hercules-ci-cnix-store.passthru.nixPackage; };
10191027
hercules-ci-cnix-expr = addTestToolDepend pkgs.git (super.hercules-ci-cnix-expr.override { nix = self.hercules-ci-cnix-store.passthru.nixPackage; });
10201028
hercules-ci-cnix-store = (super.hercules-ci-cnix-store.override { nix = self.hercules-ci-cnix-store.passthru.nixPackage; }).overrideAttrs (_: {

0 commit comments

Comments
 (0)