Skip to content

Commit b367bf2

Browse files
committed
Update tests to make compiler-nix-name explicit
1 parent 482a1a1 commit b367bf2

File tree

27 files changed

+93
-80
lines changed

27 files changed

+93
-80
lines changed

build.nix

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,22 @@ in
99
, nixpkgsArgs ? haskellNix.nixpkgsArgs
1010
, pkgs ? import nixpkgs nixpkgsArgs
1111
, ifdLevel ? 1000
12+
, compiler-nix-name
1213
}:
1314

1415
let
1516
haskell = pkgs.haskell-nix;
1617
buildHaskell = pkgs.buildPackages.haskell-nix;
17-
tool = buildHaskell.tool;
18+
tool = buildHaskell.tool';
1819
in rec {
19-
tests = import ./test/default.nix { inherit pkgs ifdLevel; };
20+
tests = import ./test/default.nix { inherit pkgs ifdLevel compiler-nix-name; };
2021

2122
tools = pkgs.lib.optionalAttrs (ifdLevel >= 3) (
2223
pkgs.recurseIntoAttrs {
23-
ghcide-020 = tool "ghcide" "0.2.0";
24-
} // pkgs.lib.optionalAttrs (buildHaskell.defaultCompilerNixName == "ghc865") {
25-
cabal-30 = tool "cabal" "3.0.0.0";
26-
} // pkgs.lib.optionalAttrs (buildHaskell.defaultCompilerNixName != "ghc8101") {
27-
cabal-32 = tool "cabal" "3.2.0.0";
28-
ghcide-object-code = tool "ghcide" "object-code";
24+
ghcide-020 = tool compiler-nix-name "ghcide" "0.2.0";
25+
cabal-32 = tool compiler-nix-name "cabal" "3.2.0.0";
26+
} // pkgs.lib.optionalAttrs (buildHaskell.defaddultCompilerNixName != "ghc8101") {
27+
ghcide-object-code = tool compiler-nix-name "ghcide" "object-code";
2928
}
3029
);
3130

@@ -47,11 +46,10 @@ in rec {
4746
# use)
4847
check-hydra = pkgs.buildPackages.callPackage ./scripts/check-hydra.nix {};
4948
check-closure-size = pkgs.buildPackages.callPackage ./scripts/check-closure-size.nix {
50-
# Includes cabal-install and hpack since these are commonly used.
49+
# Includes cabal-install since this is commonly used.
5150
nix-tools = pkgs.linkFarm "common-tools" [
52-
{ name = "nix-tools"; path = haskell.nix-tools; }
53-
{ name = "cabal-install"; path = haskell.cabal-install; }
54-
{ name = "hpack"; path = haskell.haskellPackages.hpack.components.exes.hpack; }
51+
{ name = "nix-tools"; path = haskell.nix-tools.${compiler-nix-name}; }
52+
{ name = "cabal-install"; path = haskell.cabal-install.${compiler-nix-name}; }
5553
];
5654
};
5755
check-materialization-concurrency = pkgs.buildPackages.callPackage ./scripts/check-materialization-concurrency/check.nix {};

builder/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs, buildPackages, stdenv, lib, haskellLib, ghc, fetchurl, pkgconfig, nonReinstallablePkgs, hsPkgs }:
1+
{ pkgs, buildPackages, stdenv, lib, haskellLib, ghc, fetchurl, pkgconfig, nonReinstallablePkgs, hsPkgs, compiler }:
22

33
let
44
# Builds a single component of a package.
@@ -45,6 +45,7 @@ let
4545
hoogleLocal = let
4646
nixpkgsHoogle = import (pkgs.path + /pkgs/development/haskell-modules/hoogle.nix);
4747
in { packages ? [], hoogle ? pkgs.buildPackages.haskell-nix.tool "hoogle" {
48+
compiler-nix-name = compiler.nix-name;
4849
version = "5.0.17.15";
4950
index-state = pkgs.haskell-nix.internalHackageIndexState;
5051
}
@@ -59,9 +60,8 @@ let
5960

6061
# Same as haskellPackages.shellFor in nixpkgs.
6162
shellFor = haskellLib.weakCallPackage pkgs ./shell-for.nix {
62-
inherit hsPkgs ghcForComponent makeConfigFiles hoogleLocal haskellLib buildPackages;
63+
inherit hsPkgs ghcForComponent makeConfigFiles hoogleLocal haskellLib buildPackages compiler;
6364
inherit (buildPackages) glibcLocales;
64-
buildGHC = ghc.passthru.buildGHC or ghc;
6565
};
6666

6767
# Same as haskellPackages.ghcWithPackages and ghcWithHoogle in nixpkgs.

builder/shell-for.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, stdenv, glibcLocales, pkgconfig, ghcForComponent, makeConfigFiles, hsPkgs, hoogleLocal, haskellLib, buildPackages, buildGHC }:
1+
{ lib, stdenv, glibcLocales, pkgconfig, ghcForComponent, makeConfigFiles, hsPkgs, hoogleLocal, haskellLib, buildPackages, compiler }:
22

33
{ packages ? ps:
44
let
@@ -93,7 +93,7 @@ in
9393
nativeBuildInputs = [ ghcEnv ]
9494
++ nativeBuildInputs
9595
++ mkDrvArgs.nativeBuildInputs or []
96-
++ lib.attrValues (buildPackages.haskell-nix.toolsForGhc buildGHC tools);
96+
++ lib.attrValues (buildPackages.haskell-nix.tools' compiler.nix-name tools);
9797
phases = ["installPhase"];
9898
installPhase = "echo $nativeBuildInputs $buildInputs > $out";
9999
LANG = "en_US.UTF-8";

ci.nix

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"R1909" = "nixpkgs-1909";
1313
"R2003" = "nixpkgs-2003";
1414
};
15-
compilerNixNames = nixpkgsName: nixpkgs: builtins.mapAttrs (defaultCompilerNixName: _:
16-
(import ./default.nix { inherit checkMaterialization defaultCompilerNixName; }).nixpkgsArgs) ({
15+
compilerNixNames = nixpkgsName: nixpkgs: builtins.mapAttrs (compiler-nix-name: _:
16+
(import ./default.nix { inherit checkMaterialization; }).nixpkgsArgs) ({
1717
ghc865 = {};
1818
} // nixpkgs.lib.optionalAttrs (nixpkgsName == "R2003") {
1919
ghc883 = {};
@@ -24,11 +24,11 @@
2424
linux = "x86_64-linux";
2525
darwin = "x86_64-darwin";
2626
};
27-
crossSystems = nixpkgsName: nixpkgs: compilerNixName: system:
27+
crossSystems = nixpkgsName: nixpkgs: compiler-nix-name: system:
2828
# We need to use the actual nixpkgs version we're working with here, since the values
2929
# of 'lib.systems.examples' are not understood between all versions
3030
let lib = nixpkgs.lib;
31-
in lib.optionalAttrs (system == "x86_64-linux" && compilerNixName != "ghc8101") {
31+
in lib.optionalAttrs (system == "x86_64-linux" && compiler-nix-name != "ghc8101") {
3232
# Windows cross compilation is currently broken on macOS
3333
inherit (lib.systems.examples) mingwW64;
3434
} // lib.optionalAttrs (system == "x86_64-linux") {
@@ -41,32 +41,32 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: nixpkgs-pin:
4141
let pinnedNixpkgsSrc = sources.${nixpkgs-pin};
4242
# We need this for generic nixpkgs stuff at the right version
4343
genericPkgs = import pinnedNixpkgsSrc {};
44-
in dimension "GHC version" (compilerNixNames nixpkgsName genericPkgs) (compilerNixName: nixpkgsArgs:
44+
in dimension "GHC version" (compilerNixNames nixpkgsName genericPkgs) (compiler-nix-name: nixpkgsArgs:
4545
dimension "System" (systems genericPkgs) (systemName: system:
4646
let pkgs = import pinnedNixpkgsSrc (nixpkgsArgs // { inherit system; });
47-
build = import ./build.nix { inherit pkgs ifdLevel; };
47+
build = import ./build.nix { inherit pkgs ifdLevel compiler-nix-name; };
4848
platformFilter = platformFilterGeneric pkgs system;
4949
in filterAttrsOnlyRecursive (_: v: platformFilter v) {
5050
# Native builds
5151
# TODO: can we merge this into the general case by picking an appropriate "cross system" to mean native?
5252
native = pkgs.recurseIntoAttrs ({
5353
inherit (build) tests tools maintainer-scripts maintainer-script-cache;
54-
ghc = pkgs.buildPackages.haskell-nix.compiler."${compilerNixName}";
54+
ghc = pkgs.buildPackages.haskell-nix.compiler."${compiler-nix-name}";
5555
} // pkgs.lib.optionalAttrs (ifdLevel >= 1) {
56-
iserv-proxy = pkgs.ghc-extra-packages."${compilerNixName}".iserv-proxy.components.exes.iserv-proxy;
56+
iserv-proxy = pkgs.ghc-extra-packages."${compiler-nix-name}".iserv-proxy.components.exes.iserv-proxy;
5757
} // pkgs.lib.optionalAttrs (ifdLevel >= 3) {
5858
hello = (pkgs.haskell-nix.hackage-package { name = "hello"; version = "1.0.0.2"; }).components.exes.hello;
5959
});
6060
}
6161
//
62-
dimension "Cross system" (crossSystems nixpkgsName genericPkgs compilerNixName system) (crossSystemName: crossSystem:
62+
dimension "Cross system" (crossSystems nixpkgsName genericPkgs compiler-nix-name system) (crossSystemName: crossSystem:
6363
# Cross builds
6464
let pkgs = import pinnedNixpkgsSrc (nixpkgsArgs // { inherit system crossSystem; });
6565
build = import ./build.nix { inherit pkgs ifdLevel; };
6666
in pkgs.recurseIntoAttrs (pkgs.lib.optionalAttrs (ifdLevel >= 1) {
67-
ghc = pkgs.buildPackages.haskell-nix.compiler."${compilerNixName}";
67+
ghc = pkgs.buildPackages.haskell-nix.compiler."${compiler-nix-name}";
6868
# TODO: look into cross compiling ghc itself
69-
# ghc = pkgs.haskell-nix.compiler."${compilerNixName}";
69+
# ghc = pkgs.haskell-nix.compiler."${compiler-nix-name}";
7070
# TODO: look into making tools work when cross compiling
7171
# inherit (build) tools;
7272
# Tests are broken on aarch64 cross https://github.com/input-output-hk/haskell.nix/issues/513
@@ -78,8 +78,8 @@ dimension "Nixpkgs version" nixpkgsVersions (nixpkgsName: nixpkgs-pin:
7878
inherit (build.tests) haskellNixRoots;
7979
};
8080
} // pkgs.lib.optionalAttrs (ifdLevel >= 2) {
81-
remote-iserv = pkgs.ghc-extra-packages."${compilerNixName}".remote-iserv.components.exes.remote-iserv;
82-
iserv-proxy = pkgs.ghc-extra-packages."${compilerNixName}".iserv-proxy.components.exes.iserv-proxy;
81+
remote-iserv = pkgs.ghc-extra-packages."${compiler-nix-name}".remote-iserv.components.exes.remote-iserv;
82+
iserv-proxy = pkgs.ghc-extra-packages."${compiler-nix-name}".iserv-proxy.components.exes.iserv-proxy;
8383
} // pkgs.lib.optionalAttrs (ifdLevel >= 3) {
8484
hello = (pkgs.haskell-nix.hackage-package { name = "hello"; version = "1.0.0.2"; }).components.exes.hello;
8585
})

lib/call-stack-to-nix.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
, stack-sha256 ? null
1515
, materialized ? null # Location of a materialized copy of the nix files
1616
, checkMaterialization ? null # If true the nix files will be generated used to check plan-sha256 and material
17-
, compiler-nix-name ? pkgs.haskell-nix.defaultCompilerNixNameTODO # We should get this from stack.yaml
18-
, nix-tools ? pkgs.haskell-nix.nix-tools-set {
19-
inherit compiler-nix-name checkMaterialization;
20-
}
17+
, nix-tools ? pkgs.haskell-nix.nix-tools.${pkgs.haskell-nix.defaultCompilerNixNameTODO}
2118
, ... }:
2219
let
2320
subDir' = src.origSubDir or "";

modules/component-driver.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let
33
builder = haskellLib.weakCallPackage pkgs ../builder {
44
inherit haskellLib;
55
ghc = config.ghc.package;
6-
inherit (config) nonReinstallablePkgs hsPkgs;
6+
inherit (config) nonReinstallablePkgs hsPkgs compiler;
77
};
88

99
in

overlays/haskell.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,14 @@ final: prev: {
323323
if type == "cabal"
324324
then
325325
final.buildPackages.haskell-nix.callCabalToNix {
326+
compiler-nix-name = final.haskell-nix.defaultCompilerNixNameTODO;
326327
src = repoWithSubdir;
327328
inherit name cabal-file;
328329
}
329330
else if type == "stack"
330331
then
331332
(final.buildPackages.haskell-nix.callStackToNix {
333+
compiler-nix-name = final.haskell-nix.defaultCompilerNixNameTODO;
332334
src = repoWithSubdir;
333335
inherit name subdir;
334336
}).projectNix

test/buildable/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
{ stdenv, cabalProject', haskellLib, recurseIntoAttrs, testSrc }:
1+
{ stdenv, cabalProject', haskellLib, recurseIntoAttrs, testSrc, compiler-nix-name }:
22

33
with stdenv.lib;
44

55
let
66
project = cabalProject' {
7+
inherit compiler-nix-name;
78
index-state = "2020-05-25T00:00:00Z";
89
src = testSrc "buildable";
910
modules = [ { packages.buildable-test.flags.exclude-broken = true; } ];

test/cabal-22/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
{ stdenv, mkCabalProjectPkgSet, cabalProject', haskellLib, util, recurseIntoAttrs, testSrc }:
1+
{ stdenv, mkCabalProjectPkgSet, cabalProject', haskellLib, util, recurseIntoAttrs, testSrc, compiler-nix-name }:
22

33
with stdenv.lib;
44

55
let
66
project = cabalProject' {
7+
inherit compiler-nix-name;
78
src = testSrc "cabal-22";
89
};
910

test/cabal-hpack/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test a package set
2-
{ stdenv, util, mkCabalProjectPkgSet, project', haskellLib, recurseIntoAttrs, testSrc }:
2+
{ stdenv, util, mkCabalProjectPkgSet, project', haskellLib, recurseIntoAttrs, testSrc, compiler-nix-name }:
33

44
with stdenv.lib;
55

@@ -13,6 +13,7 @@ let
1313
];
1414

1515
project = project' {
16+
inherit compiler-nix-name;
1617
src = testSrc "cabal-hpack";
1718
inherit modules;
1819
};

test/cabal-simple-prof/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test a package set
2-
{ stdenv, util, cabalProject', haskellLib, recurseIntoAttrs, testSrc }:
2+
{ stdenv, util, cabalProject', haskellLib, recurseIntoAttrs, testSrc, compiler-nix-name }:
33

44
with stdenv.lib;
55

@@ -16,6 +16,7 @@ let
1616
];
1717

1818
project = cabalProject' {
19+
inherit compiler-nix-name;
1920
src = testSrc "cabal-simple-prof";
2021
inherit modules;
2122
};

test/cabal-simple/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test a package set
2-
{ stdenv, util, mkCabalProjectPkgSet, project', haskellLib, recurseIntoAttrs, testSrc }:
2+
{ stdenv, util, mkCabalProjectPkgSet, project', haskellLib, recurseIntoAttrs, testSrc, compiler-nix-name }:
33

44
with stdenv.lib;
55

@@ -13,6 +13,7 @@ let
1313
];
1414

1515
project = project' {
16+
inherit compiler-nix-name;
1617
src = testSrc "cabal-simple";
1718
inherit modules;
1819
};

test/cabal-source-repo/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
{ stdenv, cabalProject', recurseIntoAttrs, haskellLib, testSrc }:
1+
{ stdenv, cabalProject', recurseIntoAttrs, haskellLib, testSrc, compiler-nix-name }:
22

33
with stdenv.lib;
44

55
let
66
project = cabalProject' {
7+
inherit compiler-nix-name;
78
index-state = "2020-05-25T00:00:00Z";
89
src = testSrc "cabal-source-repo";
910
};

test/cabal-sublib/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test a package set
2-
{ stdenv, util, cabalProject', haskellLib, recurseIntoAttrs, testSrc }:
2+
{ stdenv, util, cabalProject', haskellLib, recurseIntoAttrs, testSrc, compiler-nix-name }:
33

44
with stdenv.lib;
55

@@ -14,6 +14,7 @@ let
1414

1515
# The ./pkgs.nix works for linux & darwin, but not for windows
1616
project = cabalProject' {
17+
inherit compiler-nix-name;
1718
src = testSrc "cabal-sublib";
1819
inherit modules;
1920
};

test/call-cabal-project-to-nix/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
{ stdenv, mkCabalProjectPkgSet, callCabalProjectToNix, importAndFilterProject, recurseIntoAttrs, haskellLib, testSrc }:
1+
{ stdenv, mkCabalProjectPkgSet, callCabalProjectToNix, importAndFilterProject, recurseIntoAttrs, haskellLib, testSrc, compiler-nix-name }:
22

33
with stdenv.lib;
44

55
let
66
# This test could use cabalProject', but it does so that it
77
# tests using callCabalProjectToNix and importAndFilterProject
88
callProjectResults = callCabalProjectToNix {
9+
inherit compiler-nix-name;
910
index-state = "2020-05-25T00:00:00Z";
1011
# reuse the cabal-simple test project
1112
src = testSrc "cabal-simple";

test/default.nix

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{ haskellNix ? import ../default.nix { defaultCompilerNixName = compiler-nix-name; inherit checkMaterialization; }
1+
{ haskellNix ? import ../default.nix { inherit checkMaterialization; }
22
, pkgs ? import nixpkgs nixpkgsArgs
33
, nixpkgs ? haskellNix.sources.nixpkgs-default
44
, nixpkgsArgs ? haskellNix.nixpkgsArgs
55
, ifdLevel ? 1000
6-
, compiler-nix-name ? pkgs.haskell-nix.defaultCompilerNixName
6+
, compiler-nix-name
77
, checkMaterialization ? false
88
}:
99

@@ -151,46 +151,43 @@ let
151151

152152
# All tests.
153153
allTests = {
154-
cabal-simple = callTest ./cabal-simple { inherit util; };
155-
cabal-simple-prof = callTest ./cabal-simple-prof { inherit util; };
156-
cabal-sublib = callTest ./cabal-sublib { inherit util; };
157-
cabal-22 = callTest ./cabal-22 { inherit util; };
154+
cabal-simple = callTest ./cabal-simple { inherit util compiler-nix-name; };
155+
cabal-simple-prof = callTest ./cabal-simple-prof { inherit util compiler-nix-name; };
156+
cabal-sublib = callTest ./cabal-sublib { inherit util compiler-nix-name; };
157+
cabal-22 = callTest ./cabal-22 { inherit util compiler-nix-name; };
158158
with-packages = callTest ./with-packages { inherit util; };
159159
builder-haddock = callTest ./builder-haddock {};
160160
stack-simple = callTest ./stack-simple {};
161161
stack-local-resolver = callTest ./stack-local-resolver {};
162162
snapshots = callTest ./snapshots {};
163163
shell-for = callTest ./shell-for {};
164-
shell-for-setup-deps = callTest ./shell-for-setup-deps {};
165-
setup-deps = import ./setup-deps { inherit pkgs; };
164+
shell-for-setup-deps = callTest ./shell-for-setup-deps { inherit compiler-nix-name; };
165+
setup-deps = import ./setup-deps { inherit pkgs compiler-nix-name; };
166166
callStackToNix = callTest ./call-stack-to-nix {};
167-
callCabalProjectToNix = callTest ./call-cabal-project-to-nix {};
168-
cabal-source-repo = callTest ./cabal-source-repo {};
169-
buildable = callTest ./buildable {};
170-
project-flags-cabal = callTest ./project-flags/cabal.nix {};
167+
callCabalProjectToNix = callTest ./call-cabal-project-to-nix { inherit compiler-nix-name; };
168+
cabal-source-repo = callTest ./cabal-source-repo { inherit compiler-nix-name; };
169+
buildable = callTest ./buildable { inherit compiler-nix-name; };
170+
project-flags-cabal = callTest ./project-flags/cabal.nix { inherit compiler-nix-name; };
171171
project-flags-stack = callTest ./project-flags/stack.nix {};
172-
ghc-options-cabal = callTest ./ghc-options/cabal.nix {};
172+
ghc-options-cabal = callTest ./ghc-options/cabal.nix { inherit compiler-nix-name; };
173173
ghc-options-stack = callTest ./ghc-options/stack.nix {};
174-
exe-only = callTest ./exe-only { inherit util; };
174+
exe-only = callTest ./exe-only { inherit util compiler-nix-name; };
175175
stack-source-repo = callTest ./stack-source-repo {};
176-
extra-hackage = callTest ./extra-hackage {};
177-
# compiler-nix-name = callTest ./compiler-nix-name {};
178-
hls-cabal = callTest ./haskell-language-server/cabal.nix {};
179-
hls-stack = callTest ./haskell-language-server/stack.nix {};
180-
cabal-hpack = callTest ./cabal-hpack { inherit util; };
176+
extra-hackage = callTest ./extra-hackage { inherit compiler-nix-name; };
177+
compiler-nix-name = callTest ./compiler-nix-name {};
178+
hls-cabal = callTest ./haskell-language-server/cabal.nix { inherit compiler-nix-name; };
179+
hls-stack = callTest ./haskell-language-server/stack.nix { inherit compiler-nix-name; };
180+
cabal-hpack = callTest ./cabal-hpack { inherit util compiler-nix-name; };
181+
index-state = callTest ./index-state { inherit compiler-nix-name; };
181182

182183
unit = unitTests;
183184
} // lib.optionalAttrs (!stdenv.hostPlatform.isGhcjs && compiler-nix-name != "ghc8101" ) {
184185
# Pandoc does not build with ghcjs or ghc 8.10.1 yet (lookup-sha256 and fully-static build pandoc)
185-
lookup-sha256 = callTest ./lookup-sha256 {};
186+
lookup-sha256 = callTest ./lookup-sha256 { inherit compiler-nix-name; };
186187
fully-static = callTest ./fully-static { inherit (pkgs) buildPackages; };
187-
} // lib.optionalAttrs (compiler-nix-name != "ghc8101") {
188-
# This test makes a plan for building cabal 3.2 using index-states that will
189-
# never work with ghc 8.10.1
190-
index-state = callTest ./index-state {};
191188
} // lib.optionalAttrs (!pkgs.haskell-nix.haskellLib.isCrossHost) {
192189
# Haddock is not included with cross compilers currently
193-
sublib-docs = callTest ./sublib-docs { inherit util; };
190+
sublib-docs = callTest ./sublib-docs { inherit util compiler-nix-name; };
194191
};
195192

196193
# This is the same as allTests, but filter out all the key/vaules from the

test/exe-only/default.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Test a package set
2-
{ stdenv, util, haskell-nix, recurseIntoAttrs, haskellLib, testSrc }:
2+
{ stdenv, util, haskell-nix, recurseIntoAttrs, haskellLib, testSrc, compiler-nix-name }:
33

44
with stdenv.lib;
55

66
let
77
project = haskell-nix.cabalProject' {
8+
inherit compiler-nix-name;
89
src = testSrc "exe-only";
910
};
1011

0 commit comments

Comments
 (0)