Skip to content

Commit 0c22717

Browse files
committed
Fix defaults used when passing args to shellFor
1 parent 293741b commit 0c22717

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

overlays/haskell.nix

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -827,10 +827,11 @@ final: prev: {
827827
# ];
828828
# }
829829
#
830-
shellFor = extraArgs: shellFor' (rawProject.args.shell // extraArgs).crossPlatforms extraArgs;
831-
shellFor' = crossPlatforms: extraArgs:
830+
shellFor = extraArgs: (appendModule { shell = extraArgs; }).shell;
831+
shell = shellFor' rawProject.args.shell.crossPlatforms;
832+
shellFor' = crossPlatforms:
832833
let
833-
shellArgs = builtins.removeAttrs (rawProject.args.shell // extraArgs) [ "crossPlatforms" ];
834+
shellArgs = builtins.removeAttrs rawProject.args.shell [ "crossPlatforms" ];
834835
# These are the args we will pass to the shells for the corss compiler
835836
argsCross =
836837
# These things should match main shell
@@ -848,9 +849,6 @@ final: prev: {
848849
inputsFrom = shellArgs.inputsFrom or [] ++ crossShells;
849850
});
850851

851-
# Default shell
852-
shell = shellFor {};
853-
854852
# Like `.hsPkgs.${packageName}` but when compined with `getComponent` any
855853
# cabal configure errors are defered until the components derivation builds.
856854
getPackage = packageName:

0 commit comments

Comments
 (0)