File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,9 @@ in rec {
28
28
} ) ;
29
29
} // pkgs . lib . optionalAttrs ( __compareVersions haskell . compiler . ${ compiler-nix-name } . version "9.4" >= 0 ) {
30
30
# Make sure the plan for hadrian is cached (we need it to instanciate ghc).
31
- hadrian-plan = ( pkgs . haskell-nix . compiler . ${ compiler-nix-name } . hadrian . project . appendModule [ {
32
- compilerSelection = p : builtins . mapAttrs . override { hadiranEvalPackages = evalPackages ; } p . haskell-nix . compiler ;
33
- } ] ) . plan-nix ;
31
+ hadrian-plan = pkgs . haskell-nix . compiler . ${ compiler-nix-name } . hadrianProject . plan-nix ;
34
32
# Also include the same plan evaluated on the eval system (probably x86_64-linux).
35
- hadrian-plan-eval = ( pkgs . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ) . hadrian . project . plan-nix ;
33
+ hadrian-plan-eval = ( pkgs . haskell-nix . compiler . ${ compiler-nix-name } . override { hadrianEvalPackages = evalPackages ; } ) . hadrianProject . plan-nix ;
36
34
} // pkgs . lib . optionalAttrs ( __compareVersions haskell . compiler . ${ compiler-nix-name } . version "9.8" < 0 ) {
37
35
hlint-latest = tool compiler-nix-name "hlint" {
38
36
inherit evalPackages ;
Original file line number Diff line number Diff line change 254
254
# value for us.
255
255
installStage1 = useHadrian && ( with haskell-nix . haskellLib ; isCrossTarget || isNativeMusl ) ;
256
256
257
- hadrian =
257
+ hadrianProject =
258
+ assert ( hadrianEvalPackages . system == "x86_64-linux" ) ;
258
259
let
259
260
compiler-nix-name =
260
261
if builtins . compareVersions ghc-version "9.4.7" < 0
263
264
then "ghc964"
264
265
else "ghc962" ;
265
266
in
266
- buildPackages . haskell-nix . tool compiler-nix-name "hadrian" {
267
+ buildPackages . haskell-nix . cabalProject' {
268
+ inherit compiler-nix-name ;
269
+ name = "hadrian" ;
267
270
compilerSelection = p : p . haskell . compiler ;
268
271
index-state = buildPackages . haskell-nix . internalHackageIndexState ;
269
272
evalPackages = hadrianEvalPackages ;
296
299
} ;
297
300
} ;
298
301
302
+ hadrian = hadrianProject . hsPkgs . hadrian . components . exes . hadrian ;
303
+
299
304
# For a discription of hadrian command line args
300
305
# see https://gitlab.haskell.org/ghc/ghc/blob/master/hadrian/README.md
301
306
# For build flavours and flavour transformers
@@ -663,7 +668,7 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
663
668
'' ;
664
669
665
670
passthru = {
666
- inherit bootPkgs targetPrefix libDir llvmPackages enableShared useLLVM hadrian ;
671
+ inherit bootPkgs targetPrefix libDir llvmPackages enableShared useLLVM hadrian hadrianProject ;
667
672
668
673
# Our Cabal compiler name
669
674
haskellCompilerName = "ghc-${ version } " ;
You can’t perform that action at this time.
0 commit comments