@@ -3,18 +3,13 @@
3{ # `packages` function selects packages that will be worked on in the shell itself.
3{ # `packages` function selects packages that will be worked on in the shell itself.
4 # These packages will not be built by `shellFor`, but their
4 # These packages will not be built by `shellFor`, but their
5 # dependencies will be included in the shell's `ghc-pkg list`.
5 # dependencies will be included in the shell's `ghc-pkg list`.
8− selected = haskellLib.selectLocalPackages ps;
6+ packages ? ps: builtins.attrValues (haskellLib.selectLocalPackages ps)
10− builtins.trace ("Shell for " + toString (builtins.attrNames selected))
11− (builtins.attrValues selected)
12 # `components` function selects components that will be worked on in the shell itself.
7 # `components` function selects components that will be worked on in the shell itself.
13 # By default `shellFor` will include the dependencies of all of the components
8 # By default `shellFor` will include the dependencies of all of the components
14 # in the selected packages. If only as subset of the components will be
9 # in the selected packages. If only as subset of the components will be
15 # worked on in the shell then we can pass a different `components` function
10 # worked on in the shell then we can pass a different `components` function
16 # to select those.
11 # to select those.
17−, components ? ps: lib.concatMap haskellLib.getAllComponents (packages hsPkgs)
12+, components ? ps: lib.concatMap haskellLib.getAllComponents (packages hsPkgs)
18 # Additional packages to be added unconditionally
13 # Additional packages to be added unconditionally
19, additional ? _: []
14, additional ? _: []
20, withHoogle ? true
15, withHoogle ? true
@@ -143,7 +138,10 @@ in
145 phases = ["installPhase"];
140 phases = ["installPhase"];
142+ echo "${"Shell for " + toString (builtins.map (p : p.identifier.name) selectedPackages)}"
146− installPhase = "echo $nativeBuildInputs $buildInputs > $out";
143+ echo $nativeBuildInputs $buildInputs > $out
147 LANG = "en_US.UTF-8";
145 LANG = "en_US.UTF-8";
148 LOCALE_ARCHIVE = lib.optionalString (stdenv.hostPlatform.libc == "glibc") "${glibcLocales}/lib/locale/locale-archive";
146 LOCALE_ARCHIVE = lib.optionalString (stdenv.hostPlatform.libc == "glibc") "${glibcLocales}/lib/locale/locale-archive";