File tree Expand file tree Collapse file tree 5 files changed +3
-133
lines changed Expand file tree Collapse file tree 5 files changed +3
-133
lines changed Original file line number Diff line number Diff line change 285
285
286
286
enableParallelBuilding = true ;
287
287
288
- SETUP_HS = setup + /bin/Setup ;
288
+ SETUP_HS = setup ;
289
289
290
290
inherit cabalFile ;
291
291
passAsFile = [ "cabalFile" ] ;
Original file line number Diff line number Diff line change 35
35
36
36
setup = if package . buildType == "Simple"
37
37
then
38
- # Don't try to build default setup with DWARF enabled
39
- let defaultSetup = ghc . defaultSetupFor package . identifier . name // {
40
- dwarf = defaultSetup ;
41
- } ; in defaultSetup
38
+ buildPackages . haskell-nix . nix-tools-unchecked . exes . cabal + "/bin/cabal act-as-setup --build-type=Simple --"
42
39
else setup-builder ( {
43
40
component = components . setup // {
44
41
depends = config . setup-depends ++ components . setup . depends ++ package . setup-depends ;
49
46
inherit ( pkg ) preUnpack postUnpack prePatch postPatch ;
50
47
} // lib . optionalAttrs ( package . buildType != "Custom" ) {
51
48
nonReinstallablePkgs = [ "base" "Cabal" ] ;
52
- } ) ;
49
+ } ) + "/bin/setup" ;
53
50
54
51
buildComp = allComponent : componentId : component : comp-builder {
55
52
inherit allComponent componentId component package name src flags setup cabalFile cabal-generator patches
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 85
85
ghcjs = import ./ghcjs.nix ;
86
86
cabalPkgConfig = import ./cabal-pkg-config.nix ;
87
87
cacheCompilerDeps = import ./cache-compiler-deps.nix ;
88
- default-setup = import ./default-setup.nix ;
89
88
dummy-ghc-data = import ./dummy-ghc-data.nix ;
90
89
fetch-source = import ./fetch-source.nix ;
91
90
} ;
Original file line number Diff line number Diff line change @@ -1121,10 +1121,6 @@ final: prev: {
1121
1121
# Things that require two levels of IFD to build (inputs should be in level 1)
1122
1122
nix-tools = final . buildPackages . haskell-nix . nix-tools ;
1123
1123
nix-tools-unchecked = final . buildPackages . haskell-nix . nix-tools-unchecked ;
1124
- # This is the setup using the prefered Cabal library.
1125
- default-setup = final . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . defaultSetupFor "some-package" ;
1126
- # This is the one used when that one is not allowed.
1127
- setup-cabal-from-ghc = final . buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . defaultSetup . useCabalFromGHC ;
1128
1124
} // final . lib . optionalAttrs ( ifdLevel > 1
1129
1125
&& final . haskell-nix . haskellLib . isCrossHost
1130
1126
# GHCJS builds its own template haskell runner.
You can’t perform that action at this time.
0 commit comments