diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index eb849342ec8..3d2676df126 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1518,8 +1518,20 @@ self: super: { # Upstream issue: https://github.com/haskell-servant/servant-swagger/issues/129 servant-swagger = dontCheck super.servant-swagger; - # 2020-11-27: cxx-options is broken in Cabal 3.2.0.0 - hercules-ci-agent = addSetupDepend super.hercules-ci-agent self.Cabal_3_2_1_0; + hercules-ci-agent = super.hercules-ci-agent.override { + cachix = + # https://github.com/cachix/cachix/pull/361 + (appendPatch + (addBuildDepend super.cachix super.hercules-ci-cnix-store) + (pkgs.fetchpatch { + name = "cachix-361.patch"; + url = "https://patch-diff.githubusercontent.com/raw/cachix/cachix/pull/361.patch"; + sha256 = "0wwlcpmnqmvk1css5f723dzgjvg4jr7i58ifhni5zg9h5iwycdfr"; + stripLen = 1; + includes = ["*.cabal" "*.hs"]; + }) + ); + }; # 2020-12-05: http-client is fixed on too old version essence-of-live-coding-warp = super.essence-of-live-coding-warp.override { diff --git a/pkgs/development/tools/continuous-integration/hercules-ci-agent/default.nix b/pkgs/development/tools/continuous-integration/hercules-ci-agent/default.nix index c8316f4bb57..ccb8b4eba65 100644 --- a/pkgs/development/tools/continuous-integration/hercules-ci-agent/default.nix +++ b/pkgs/development/tools/continuous-integration/hercules-ci-agent/default.nix @@ -1,7 +1,9 @@ -{ gnutar, gzip, git, haskell, haskellPackages, lib, makeWrapper }: +{ gnutar, gzip, git, haskell, haskellPackages, lib, makeWrapper, runc, stdenv }: let inherit (haskell.lib) overrideCabal addBuildDepends; inherit (lib) makeBinPath; + bundledBins = [ gnutar gzip git ] ++ lib.optional stdenv.isLinux runc; + pkg = # justStaticExecutables is needed due to https://github.com/NixOS/nix/issues/2990 overrideCabal @@ -11,7 +13,7 @@ let ${o.postInstall or ""} mkdir -p $out/libexec mv $out/bin/hercules-ci-agent $out/libexec - makeWrapper $out/libexec/hercules-ci-agent $out/bin/hercules-ci-agent --prefix PATH : ${makeBinPath [ gnutar gzip git ]} + makeWrapper $out/libexec/hercules-ci-agent $out/bin/hercules-ci-agent --prefix PATH : ${makeBinPath bundledBins} ''; }); in pkg // {