3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management
Peter Simons fd0f9e6fc1 Re-write the Haskell Platform out of haskell-defaults.nix.
1) Packages formerly called haskell-haskell-platform-ghcXYZ-VVVV.X.Y.Z are
    now called haskell-platform-VVVV.X.Y.Z. The latest version can be
    installed by running "nix-env -i haskell-platform".

 2) The attributes haskellPackages_ghcXYZ.haskellPlatform no longer exist.
    Instead, we have attributes like haskellPlatformPackages."2012_4_0_0".
    (The last numeric bit must be quoted when used in a Nix file, but not on
    the command line to nix-env, nix-build, etc.) The latest Platform has a
    top-level alias called simply haskellPlatform.

 3) The haskellPackages_ghcXYZ package sets offer the latest version of every
    library that GHC x.y.z can compile. For example, if 2.7 is the latest
    version of QuickCheck and if GHC 7.0.4 can compile that version, then
    haskellPackages_ghc704.QuickCheck refers to version 2.7.

 4) All intermediate GHC releases were dropped from all-packages.nix to
    simplify our configuration. What remains is a haskellPackages_ghcXYZ set
    for the latest version of every major release branch, i.e. GHC 6.10.4,
    6.12.3, 7.0.4, 7.2.2, 7.4.2, 7.6.3, 7.8.2, and 7.9.x (HEAD snapshot).

 5) The ghcXYZPrefs functions in haskell-defaults.nix now inherit overrides
    from newer to older compilers, i.e. an override configured for GHC 7.0.4
    will automatically apply to GHC 6.12.3 and 6.10.4, too. This change has
    reduced the redundancy in those configuration functions. The downside is
    that overriding an attribute for only one particular GHC version has become
    more difficult. In practice, this case doesn't occur much, though.

 6) The 'cabal' builder has a brand-new argument called 'extension'. That
    function is "self : super : {}" by default and users can override it to
    mess with the attribute set passed to cabal.mkDerivation. An example use
    would be the definition of darcs in all-packages.nix:

    | darcs = haskellPackages.darcs.override {
    |   cabal = haskellPackages.cabal.override {
    |     extension = self : super : {
    |       isLibrary = false;
    |       configureFlags = "-f-library " + super.configureFlags or "";
    |     };
    |   };
    | };

    In this case, extension disables building the library part of the package
    to give us an executable-only version that has no dependencies on GHC or
    any other Haskell packages.

    The 'self' argument refers to the final version of the attribute set and
    'super' refers to the original attribute set.

Note that ...

 - Haskell Platform packages always provide the Haddock binary that came with
   the compiler.

 - Haskell Platform 2009.2.0.2 is broken because of build failures in cgi and
   cabal-install.

 - Haskell Platform 2010.1.0.0 is broken becasue of build failures in cgi.
2014-05-14 14:59:52 +02:00
..
arch Use the working source for GNU ARch 2014-05-03 00:20:08 +04:00
bazaar bazaar: updated to 2.6.0 and fixed ssl bug 2014-02-05 11:36:48 +01:00
codeville Move all db4 packages to the default db5 2014-02-15 12:03:02 +01:00
cvs make package use mirror:// for gnu, savannah and gnome repositories where possible 2013-07-14 05:23:06 +03:00
cvs2svn
cvsps
darcs Re-write the Haskell Platform out of haskell-defaults.nix. 2014-05-14 14:59:52 +02:00
diffuse diffuse: new package, close #731. 2013-07-08 11:14:50 +02:00
fossil Updating fossil to 1.28. 2014-02-11 12:32:48 +01:00
git-and-tools haskell-git-annex: update to version 5.20140421 2014-04-29 01:35:45 +02:00
git-repo git-repo-1.20, update and pin python 2013-12-26 01:01:01 +01:00
gource Merge master into stdenv-updates 2014-01-20 19:39:28 +01:00
guitone Update Guitone 2010-11-02 19:19:25 +00:00
kdesvn Move all db4 packages to the default db5 2014-02-15 12:03:02 +01:00
meld meld: set meta.platforms attribute 2013-09-02 21:57:08 +02:00
mercurial mercurialFull: update from 2.9.1 to 2.9.2 2014-04-03 10:28:15 +03:00
monotone monotone: fix 2013-02-24 00:31:20 +01:00
monotone-viz Remove a bunch of unreferenced files 2012-11-29 13:43:37 +01:00
mr updates: mr, vcsh and transmission-remote-gtk 2014-02-06 23:37:53 +00:00
rapidsvn rapidvn: fix version to match tarball 2013-07-14 02:08:52 +03:00
rcs rcs: Update to 5.9.2 2014-01-27 17:58:26 +01:00
subversion subversion: minor bump to fix CVE-2014-0032 2014-02-22 17:04:34 +01:00
tailor tailor: Add extra source URL 2014-01-08 15:29:38 +01:00
tkcvs Updating tkcvs (which includes tkdiff) 2010-03-15 14:26:47 +00:00
vcsh updates: mr, vcsh and transmission-remote-gtk 2014-02-06 23:37:53 +00:00
veracity Mark more packages as broken 2013-11-04 21:11:00 +01:00
viewmtn * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00