haskell: make ghc, cabal-install, and stack visible

Thanks to @peti. Close #10035.

(cherry picked from commit 6070cd09fc)
This commit is contained in:
Vladimír Čunát 2015-09-24 11:40:20 +02:00
parent 993b9a023c
commit 2756c12cc0
3 changed files with 9 additions and 10 deletions

View File

@ -11,14 +11,13 @@
registered on registered on
<link xlink:href="http://hackage.haskell.org/">Hackage</link>, but <link xlink:href="http://hackage.haskell.org/">Hackage</link>, but
strangely enough normal Nix package lookups don't seem to discover strangely enough normal Nix package lookups don't seem to discover
any of them: any of them, except for the default version of ghc, cabal-install, and stack:
</para> </para>
<programlisting> <programlisting>
$ nix-env -qa cabal-install $ nix-env -i alex
error: selector cabal-install matches no derivations error: selector alex matches no derivations
$ nix-env -qa ghc
$ nix-env -i ghc ghc-7.10.2
error: selector ghc matches no derivations
</programlisting> </programlisting>
<para> <para>
The Haskell package set is not registered in the top-level namespace The Haskell package set is not registered in the top-level namespace

View File

@ -135,10 +135,9 @@ fileSystems."/shiny" = {
<listitem> <listitem>
<para> <para>
Haskell packages can no longer be found by name, i.e. the commands Haskell packages can no longer be found by name, except for
<literal>nix-env -qa cabal-install</literal> and <literal>nix-env -i <literal>ghc</literal>, <literal>cabal-install</literal>, and
ghc</literal> will fail, even though we <emphasis>do</emphasis> ship <literal>stack</literal>, even though we do package the whole Hackage.
both <literal>cabal-install</literal> and <literal>ghc</literal>.
The reason for this inconvenience is the sheer size of the Haskell The reason for this inconvenience is the sheer size of the Haskell
package set: name-based lookups such as these would become much package set: name-based lookups such as these would become much
slower than they are today if we'd add the entire Hackage database slower than they are today if we'd add the entire Hackage database

View File

@ -4063,6 +4063,7 @@ let
haskellPackages = haskell.packages.ghc7102.override { haskellPackages = haskell.packages.ghc7102.override {
overrides = config.haskellPackageOverrides or (self: super: {}); overrides = config.haskellPackageOverrides or (self: super: {});
}; };
inherit (haskellPackages) ghc cabal-install stack;
haxe = callPackage ../development/compilers/haxe { haxe = callPackage ../development/compilers/haxe {
inherit (ocamlPackages) camlp4; inherit (ocamlPackages) camlp4;