nixpkgs/pkgs/build-support
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
..
build-fhs-chrootenv Move su to the base packages of chrootenv builder 2014-04-18 13:30:24 +02:00
buildenv buildEnv: don't warn about collisions in propagated packages 2012-07-25 23:18:39 -04:00
builder-defs Use find instead of cp for installFonts. 2014-05-07 03:52:21 -04:00
cabal Re-write the Haskell Platform out of haskell-defaults.nix. 2014-05-14 14:59:52 +02:00
clang-wrapper preferLocalBuild: set to true for wrappers and fetchers 2014-02-10 21:04:17 +01:00
dotnetenv
fetchbower Add fetchbower function to go along with bower2nix 2014-01-06 08:20:22 -05:00
fetchbzr - fetchbzr and nix-prefetch-bzr now only export, instead of cloning 2013-03-31 19:16:18 -07:00
fetchcvs
fetchdarcs Remove deprecated option --ephemeral from fetchdarcs 2012-10-22 15:02:33 +02:00
fetchfile
fetchgit fetchgit: Implement option to not check out submodules. 2014-03-25 20:03:55 +01:00
fetchgitrevision
fetchhg fetchhg: allow untrusted certs (merge #540) 2013-05-20 21:24:25 +02:00
fetchmtn Fix a few typos 2013-08-11 10:55:53 +00:00
fetchsvn preferLocalBuild: set to true for wrappers and fetchers 2014-02-10 21:04:17 +01:00
fetchsvnrevision
fetchsvnssh
fetchurl fetchurl: Fix typo in comment (close #2591) 2014-05-13 11:23:50 +02:00
fetchzip fetchFromGitHub: Use .tar.gz instead of .zip 2014-05-09 15:53:44 +02:00
gcc-cross-wrapper Merge pull request #1928 from 'cross-win-osx'. 2014-04-21 10:00:35 +02:00
gcc-wrapper gcc-wrapper: don't fail when cpp doesn't exist 2014-04-02 19:07:58 +02:00
kdewrapper preferLocalBuild: set to true for wrappers and fetchers 2014-02-10 21:04:17 +01:00
kernel Fix initrd breaking by recent repeatable-builds changes 2014-04-12 00:06:30 +02:00
make-desktopitem
make-startupitem Added an optional parameter to "make-startupitem" to provide a prefix to the ".desktop" file. 2012-02-29 12:50:17 +00:00
make-symlinks
mono-dll-fixer
native-darwin-cctools-wrapper Darwin: Add mig', lipo', etc. to `stdenvNative'. 2012-04-23 15:47:31 +00:00
nuke-references
release USe maven.test.skip in stead of maven.test.skip.exec in mvn assembly, to prevent unnecessary compilation. 2014-05-07 16:37:38 +02:00
setup-hooks Move generation of coverage reports from nixos/lib/testing to releaseTools 2014-03-03 13:57:08 +01:00
src-only
substitute * Set preferLocalBuild on a few more trivial builders. 2012-04-26 15:17:43 +00:00
upstream-updater Updating SlimerJS to Git version for compatibility with fresh xulrunner 2013-10-31 02:59:45 +04:00
vm vm/windows: Wait for migration to finish. 2014-05-07 07:21:10 +02:00
vsenv
build-pecl.nix Add memcache php module 2014-03-24 08:37:36 -04:00
replace-dependency.nix replace-dependency: Eelco has ruled, lowerCamelCase > dash-case :( 2013-01-13 11:15:01 -05:00
source-from-head-fun.nix Remove getConfig helper function 2012-09-19 13:56:56 -04:00
trivial-builders.nix build-support: Add writeTextDir 2014-03-23 10:05:38 +00:00