Skip to content

Commit d041f34

Browse files
committed
stack: instruct it to not use nix as we provide ghc from devenv
1 parent 9026681 commit d041f34

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/modules/languages/haskell.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ in
4848
hpack
4949
]
5050
++ (lib.optional (cfg.languageServer != null) cfg.languageServer)
51-
++ (lib.optional (cfg.stack != null) cfg.stack);
51+
++ (lib.optional (cfg.stack != null) (cfg.stack.overrideAttrs (oldAttrs: {
52+
postInstall = (oldAttrs.postInstall or "") + ''
53+
wrapProgram $out/bin/stack \
54+
--add-flags "\
55+
--no-nix \
56+
--system-ghc \
57+
--no-install-ghc"
58+
'';
59+
})));
5260
};
5361
}

0 commit comments

Comments
 (0)