3
0
Fork 0
forked from mirrors/nixpkgs
Nix Packages collection
Go to file
Peter Simons 89c566fcfd pkgs/development/compilers/ghc/with-packages.nix: improve recognition of Haskell packages
Haskell packages -- i.e. packages built by our Cabal builder -- invariably have
the attributes 'pname' and 'version'. We use the absence of these attributes to
recognize non-Haskell packages and filter them from the closed package set
generated by closePropagation. We do this so that the generated Haskell
environment won't contain paths like "/lib/libz.a", which are part of the
closure but have nothing to do with Haskell.

The previous scheme used the attribute 'ghc' to accomplish the same thing, but
unfortunately other packages to contain a 'ghc' attribute, too, like the
old-style ghc-wrapper. Including the ghc-wrapper in this environment is
pointless, obviously. The new approach filters the ghc-wrapper successfully.
2013-11-07 12:14:19 +01:00
doc Only show/build a package on the platforms listed in meta.platforms 2013-11-05 00:06:10 +01:00
lib Merge pull request #1181 from Zoomulator/master 2013-11-07 02:54:32 -08:00
maintainers/scripts Fix references to pkgs/lib 2013-10-10 13:28:22 +02:00
nixos Merge pull request #1172 from zefhemel/patch-1 2013-11-07 03:11:11 -08:00
pkgs pkgs/development/compilers/ghc/with-packages.nix: improve recognition of Haskell packages 2013-11-07 12:14:19 +01:00
.gitignore Merge .gitignore files 2013-10-10 13:28:22 +02:00
.version Next release will be 14.02 Baboon 2013-11-01 09:16:36 +01:00
COPYING * Applying an MIT-style license to Nixpkgs. 2006-04-25 16:50:34 +00:00
default.nix * For convenience, provide a top-level Nix expression that simply 2007-04-26 14:32:57 +00:00