File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 110
110
111
111
ghc = ( if enableDWARF then ( x : x . dwarf ) else ( x : x ) ) (
112
112
( if smallAddressSpace then ( x : x . smallAddressSpace ) else ( x : x ) ) defaults . ghc ) ;
113
- setup = ( if enableDWARF then ( x : x . dwarf ) else ( x : x ) ) (
114
- ( if smallAddressSpace then ( x : x . smallAddressSpace ) else ( x : x ) ) drvArgs . setup ) ;
113
+ setup = ( if enableDWARF then ( x : x . dwarf or x ) else ( x : x ) ) (
114
+ ( if smallAddressSpace then ( x : x . smallAddressSpace or x ) else ( x : x ) ) drvArgs . setup ) ;
115
115
116
116
# TODO fix cabal wildcard support so hpack wildcards can be mapped to cabal wildcards
117
117
canCleanSource = ! ( cabal-generator == "hpack" && ! ( package . cleanHpack or false ) ) ;
285
285
286
286
enableParallelBuilding = true ;
287
287
288
- SETUP_HS = setup ;
288
+ SETUP_HS = setup + ( if setup . isCabal or false then "/bin/cabal act-as-setup --build-type=Simple --" else "/bin/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
- buildPackages . haskell-nix . nix-tools-unchecked . exes . cabal + "/bin/cabal act-as-setup --build-type=Simple --"
38
+ buildPackages . haskell-nix . nix-tools-unchecked . exes . cabal // { isCabal = true ; }
39
39
else setup-builder ( {
40
40
component = components . setup // {
41
41
depends = config . setup-depends ++ components . setup . depends ++ package . setup-depends ;
46
46
inherit ( pkg ) preUnpack postUnpack prePatch postPatch ;
47
47
} // lib . optionalAttrs ( package . buildType != "Custom" ) {
48
48
nonReinstallablePkgs = [ "base" "Cabal" ] ;
49
- } ) + "/bin/Setup" ;
49
+ } ) ;
50
50
51
51
buildComp = allComponent : componentId : component : comp-builder {
52
52
inherit allComponent componentId component package name src flags setup cabalFile cabal-generator patches
You can’t perform that action at this time.
0 commit comments