Skip to content

Commit 01f822f

Browse files
committed
shellFor: only depends on hsc2hs from ghcEnv to avoid collisions
1 parent 734d829 commit 01f822f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/shell-for.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ in
167167
buildInputs = systemInputs
168168
++ mkDrvArgs.buildInputs or [];
169169
nativeBuildInputs = [ ghcEnv ]
170-
++ nativeBuildInputs
170+
# We remove hsc2hs from dependencies provided by packages `build-tools`
171+
# since it is already provided by `ghcEnv` (avoid collision with using devshell).
172+
++ (lib.filter (p: p.pname or "" != "hsc2hs-exe-hsc2hs") nativeBuildInputs)
171173
++ mkDrvArgs.nativeBuildInputs or []
172174
++ lib.attrValues (buildPackages.haskell-nix.tools' evalPackages compiler.nix-name tools)
173175
# If this shell is a cross compilation shell include

0 commit comments

Comments
 (0)