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