Commit aec29492 authored by Robert Hensing's avatar Robert Hensing
Browse files

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!
parent e7d693af
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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 (_: {