Skip to content

Commit a06c1c0

Browse files
committed
act-as-setup breaks ghc plugin support somehow
1 parent cd106c4 commit a06c1c0

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

builder/comp-builder.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ let
285285

286286
enableParallelBuilding = true;
287287

288-
SETUP_HS = setup + (if setup.isCabal or false then "/bin/cabal act-as-setup --build-type=Simple --" else "/bin/Setup");
288+
SETUP_HS = setup + "/bin/Setup";
289289

290290
inherit cabalFile;
291291
passAsFile = [ "cabalFile" ];

builder/hspkg-builder.nix

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,10 @@ let
3535

3636
setup = if package.buildType == "Simple"
3737
then
38-
if stdenv.targetPlatform.isGhcjs
39-
then
40-
# Don't try to build default setup with DWARF enabled
41-
let defaultSetup = ghc.defaultSetupFor package.identifier.name // {
42-
dwarf = defaultSetup;
43-
}; in defaultSetup
44-
else
45-
buildPackages.haskell-nix.nix-tools-unchecked.exes.cabal // { isCabal = true; }
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
4642
else setup-builder ({
4743
component = components.setup // {
4844
depends = config.setup-depends ++ components.setup.depends ++ package.setup-depends;

0 commit comments

Comments
 (0)