Skip to content

Commit 8ebca17

Browse files
committed
Fix for GHC HEAD
1 parent 6130408 commit 8ebca17

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: pinnedNixpkgsSrc:
126126
} // pkgs.lib.optionalAttrs runTests {
127127
inherit (build) tests tools maintainer-scripts maintainer-script-cache;
128128
} // pkgs.lib.optionalAttrs (ifdLevel >= 3) rec {
129-
hello = (pkgs.haskell-nix.hackage-package { name = "hello"; version = "1.0.0.2"; inherit evalPackages compiler-nix-name; }).getComponent "exe:hello";
129+
hello = (pkgs.haskell-nix.hackage-package ({ name = "hello"; version = "1.0.0.2"; inherit evalPackages compiler-nix-name; }
130+
// lib.optionalAttrs (builtins.compareVersions pkgs.buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.13" >= 0) {
131+
shell.tools.hoogle.cabalProjectLocal = ''
132+
allow-newer: *:*
133+
'';
134+
})).getComponent "exe:hello";
130135
# Make sure the default shell tools (hoogle) are built
131136
simple-shell = (hello.project.flake {}).devShells.default;
132137
});

0 commit comments

Comments
 (0)