haskell-platform: add release candidate for 2013.2.0.0

This commit is contained in:
Peter Simons 2013-05-12 15:44:25 +02:00
parent aec64e12d3
commit 631d59adc3
3 changed files with 214 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ cabal, fetchurl
, async, attoparsec, caseInsensitive, cgi, fgl, GLUT, GLURaw, haskellSrc
, hashable, html, HTTP, HUnit, mtl, network, OpenGL, OpenGLRaw, parallel
, parsec, QuickCheck, random, regexBase, regexCompat, regexPosix, split, stm
, syb, text, transformers, unorderedContainers, vector, xhtml, zlib
, cabalInstall, alex, haddock, happy, primitive, ghc
}:
# This is just a meta-package. Because upstream fails to provide proper versioned
# release tarballs that can be used for the purpose of verifying this package, we
# just create it on the fly from a simple Setup.hs file and a .cabal file that we
# store directly in the nixpkgs repository.
cabal.mkDerivation (self : {
pname = "haskell-platform";
version = "2013.2.0.0";
cabalFile = ./haskell-platform-2013.2.0.0.cabal;
setupFile = ./Setup.hs;
src = null;
propagatedBuildInputs = [
async attoparsec caseInsensitive cgi fgl GLUT GLURaw haskellSrc
hashable html HTTP HUnit mtl network OpenGL OpenGLRaw parallel
parsec QuickCheck random regexBase regexCompat regexPosix split stm
syb text transformers unorderedContainers vector xhtml zlib
cabalInstall alex haddock happy primitive ghc
];
unpackPhase = ''
sourceRoot=haskell-platform
mkdir $sourceRoot
cp ${self.cabalFile} $sourceRoot/${self.pname}.cabal
cp ${self.setupFile} $sourceRoot/Setup.hs
touch $sourceRoot/LICENSE
'';
noHaddock = true;
meta = {
homepage = "http://haskell.org/platform";
description = "Haskell Platform meta package";
license = self.stdenv.lib.licenses.bsd3;
platforms = self.ghc.meta.platforms;
maintainers = [
self.stdenv.lib.maintainers.andres
self.stdenv.lib.maintainers.simons
];
};
})

View file

@ -0,0 +1,118 @@
name: haskell-platform
version: 2013.2.0.0
homepage: http://haskell.org/platform
license: BSD3
license-file: LICENSE
author: libraries@haskell.org
maintainer: haskell-platform@projects.haskell.org
category: System
synopsis: The Haskell Platform
description:
The Haskell Platform (HP) is the blessed set of libraries and tools on
which to build further Haskell libraries and applications. It is
intended to provide a comprehensive, stable, and quality tested base for
Haskell projects to work from.
.
This version specifies the following additional developer tools be
installed, for a system to be in full compliance:
.
* cabal-install
* alex
* happy
* haddock
cabal-version: >= 1.8
build-type: Custom
tested-with: GHC ==7.6.3
flag include-ghc-depends
description: Include all the GHC provided packages in the dependencies
default: False
library
if flag(include-ghc-depends)
build-depends:
ghc ==7.6.3,
-- Core libraries: provided by every ghc installation
-- We don't include "non-API" packages here.
-- begin core packages
array ==0.4.0.1,
base ==4.6.0.1,
bytestring ==0.10.0.2,
Cabal ==1.16.0,
containers ==0.5.0.0,
deepseq ==1.3.0.1,
directory ==1.2.0.1,
filepath ==1.3.0.1,
haskell2010 ==1.1.1.0,
haskell98 ==2.0.0.2,
hpc ==0.6.0.0,
old-locale ==1.0.0.5,
old-time ==1.1.0.1,
pretty ==1.1.1.0,
process ==1.1.0.2,
template-haskell ==2.8.0.0,
time ==1.4.0.1
if !os(windows)
build-depends:
unix ==2.6.0.1
-- end core packages
else
build-depends:
Win32 ==2.3.0.0
build-depends:
-- Libraries in addition to what GHC provides:
-- Note: newer versions of cgi need monad-catchio.
-- begin platform packages
async ==2.0.1.4,
attoparsec ==0.10.4.0,
case-insensitive ==1.0.0.1,
cgi ==3001.1.7.5,
fgl ==5.4.2.4,
GLUT ==2.4.0.0,
GLURaw ==1.3.0.0,
haskell-src ==1.0.1.5,
hashable ==1.1.2.5,
html ==1.0.1.2,
HTTP ==4000.2.8,
HUnit ==1.2.5.2,
mtl ==2.1.2,
network ==2.4.1.2,
OpenGL ==2.8.0.0,
OpenGLRaw ==1.3.0.0,
parallel ==3.2.0.3,
parsec ==3.1.3,
QuickCheck ==2.6,
random ==1.0.1.1,
regex-base ==0.93.2,
regex-compat ==0.95.1,
regex-posix ==0.95.2,
split ==0.2.2,
stm ==2.4.2,
syb ==0.4.0,
text ==0.11.3.1,
transformers ==0.3.0.0,
unordered-containers ==0.2.3.0,
vector ==0.10.0.1,
xhtml ==3000.2.1,
zlib ==0.5.4.1,
-- Libraries that are needed to support the above,
-- though are not officially part of the platform
primitive ==0.5.0.1
-- Depending on programs does not work, they are not registered
-- We list them to help distro packaging.
build-tools:
cabal-install ==1.16.0.2,
alex ==3.0.5,
happy ==1.18.10
-- end platform packages
-- hscolour ==1.20.3 -- ???
-- haddock ==2.13.2 -- need to use the one shipped with ghc
-- N.B.: The begin/end comment annotations are used to build the source
-- installer: Packages that are part of the core are checked at build time.
-- Source of packages that are part of the platform are included in the tarball.

View file

@ -140,16 +140,21 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
haskellPlatformArgs_future = self : {
inherit (self) cabal ghc;
async = self.async_2_0_1_4; # 7.6 ok
attoparsec = self.attoparsec_0_10_4_0; # 7.6 ok
caseInsensitive = self.caseInsensitive_1_0_0_1;
cgi = self.cgi_3001_1_7_5; # 7.6 ok
fgl = self.fgl_5_4_2_4; # 7.6 ok
GLUT = self.GLUT_2_4_0_0; # 7.6 ok
GLURaw = self.GLURaw_1_3_0_0; # 7.6 ok
haskellSrc = self.haskellSrc_1_0_1_5; # 7.6 ok
hashable = self.hashable_1_1_2_5; # 7.6 ok
html = self.html_1_0_1_2; # 7.6 ok
HTTP = self.HTTP_4000_2_8; # 7.6 ok
HUnit = self.HUnit_1_2_5_2; # 7.6 ok
mtl = self.mtl_2_1_2; # 7.6 ok
network = self.network_2_4_1_2; # 7.6 ok
OpenGL = self.OpenGL_2_8_0_0; # 7.6 ok
OpenGLRaw = self.OpenGLRaw_1_3_0_0; # 7.6 ok
parallel = self.parallel_3_2_0_3; # 7.6 ok
parsec = self.parsec_3_1_3; # 7.6 ok
QuickCheck = self.QuickCheck_2_6; # 7.6 ok
@ -162,6 +167,7 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
syb = self.syb_0_4_0; # 7.6 ok
text = self.text_0_11_3_1; # 7.6 ok
transformers = self.transformers_0_3_0_0; # 7.6 ok
unorderedContainers = self.unorderedContainers_0_2_3_0;
vector = self.vector_0_10_0_1; # 7.6 ok
xhtml = self.xhtml_3000_2_1; # 7.6 ok
zlib = self.zlib_0_5_4_1; # 7.6 ok
@ -172,6 +178,51 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
primitive = self.primitive_0_5_0_1; # semi-official, but specified
};
haskellPlatformArgs_2013_2_0_0 = self : {
inherit (self) cabal ghc;
async = self.async_2_0_1_4;
attoparsec = self.attoparsec_0_10_4_0;
caseInsensitive = self.caseInsensitive_1_0_0_1;
cgi = self.cgi_3001_1_7_5;
fgl = self.fgl_5_4_2_4;
GLUT = self.GLUT_2_4_0_0;
GLURaw = self.GLURaw_1_3_0_0;
haskellSrc = self.haskellSrc_1_0_1_5;
hashable = self.hashable_1_1_2_5;
html = self.html_1_0_1_2;
HTTP = self.HTTP_4000_2_8;
HUnit = self.HUnit_1_2_5_2;
mtl = self.mtl_2_1_2;
network = self.network_2_4_1_2;
OpenGL = self.OpenGL_2_8_0_0;
OpenGLRaw = self.OpenGLRaw_1_3_0_0;
parallel = self.parallel_3_2_0_3;
parsec = self.parsec_3_1_3;
QuickCheck = self.QuickCheck_2_6;
random = self.random_1_0_1_1;
regexBase = self.regexBase_0_93_2;
regexCompat = self.regexCompat_0_95_1;
regexPosix = self.regexPosix_0_95_2;
split = self.split_0_2_2;
stm = self.stm_2_4_2;
syb = self.syb_0_4_0;
text = self.text_0_11_3_1;
transformers = self.transformers_0_3_0_0;
unorderedContainers = self.unorderedContainers_0_2_3_0;
vector = self.vector_0_10_0_1;
xhtml = self.xhtml_3000_2_1;
zlib = self.zlib_0_5_4_1;
cabalInstall = self.cabalInstall_1_16_0_2;
alex = self.alex_3_0_5;
haddock = self.haddock_2_13_2;
happy = self.happy_1_18_10;
primitive = self.primitive_0_5_0_1; # semi-official, but specified
};
haskellPlatform_2013_2_0_0 =
callPackage ../development/libraries/haskell/haskell-platform/2013.2.0.0.nix
(self.haskellPlatformArgs_2013_2_0_0 self);
haskellPlatformArgs_2012_4_0_0 = self : {
inherit (self) cabal ghc;
async = self.async_2_0_1_3;