Added Haskell platform meta package.

(Doesn't quite work nicely yet.)

svn path=/nixpkgs/trunk/; revision=15163
This commit is contained in:
Andres Löh 2009-04-19 19:18:07 +00:00
parent e72b00b2d7
commit e42598c74b
3 changed files with 47 additions and 2 deletions

View File

@ -0,0 +1,34 @@
{cabal, fetchurl, GLUT, HTTP, HUnit, OpenAL, OpenGL, QuickCheck, cgi, fgl,
haskellSrc, html, parallel, regexBase, regexCompat, regexPosix,
stm, time, xhtml, zlib, cabalInstall, alex, happy, haddock}:
cabal.mkDerivation (self : {
pname = "haskell-platform";
version = "2009.0.0";
src = fetchurl {
url = http://code.haskell.org/haskell-platform/haskell-platform.cabal;
sha256 = "cefe19076bed6450d3d8611ff1b29fd0966106787003abedec90544968f30d9c";
};
unpackPhase = ''
cp $src haskell-platform.cabal
'';
preConfigure = ''
sed -i 's/^.*cabal-install ==.*$//' haskell-platform.cabal
echo 'import Distribution.Simple; main = defaultMain' > Setup.hs
touch LICENSE
'';
propagatedBuildInputs = [
GLUT HTTP HUnit OpenAL OpenGL QuickCheck cgi fgl
haskellSrc html parallel regexBase regexCompat regexPosix
stm time xhtml zlib cabalInstall alex happy
];
/*
postFixup = ''
ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
'';
*/
meta = {
description = "Haskell Platform meta package";
};
})

View File

@ -1,11 +1,12 @@
{cabal, ghcPaths}:
{cabal, ghcPaths, libedit}:
cabal.mkDerivation (self : {
pname = "haddock";
version = "2.4.2"; # Haskell Platform 2009.0.0
name = self.fname;
sha256 = "dbf0a7d0103a3ce6a91b2a3b96148c1b9c13ea7f8bd74260c21fe98df7839547";
propagatedBuildInputs = [ghcPaths];
# TODO: adding libedit here is a hack
propagatedBuildInputs = [ghcPaths libedit];
meta = {
description = "a tool for automatically generating documentation from annotated Haskell source code";
};

View File

@ -66,6 +66,13 @@ rec {
inherit cabal happy;
};
haskellPlatform = import ../development/libraries/haskell/haskell-platform {
inherit cabal GLUT HTTP HUnit OpenAL OpenGL QuickCheck cgi fgl
haskellSrc html parallel regexBase regexCompat regexPosix
stm time xhtml zlib cabalInstall alex happy haddock;
inherit (pkgs) fetchurl;
};
HTTP = import ../development/libraries/haskell/HTTP {
inherit cabal mtl network parsec;
};
@ -230,6 +237,8 @@ rec {
inherit (pkgs) fetchurl stdenv;
};
haddock = haddock242;
# old version of haddock, still more stable than 2.0
haddock09 = import ../development/tools/documentation/haddock/haddock-0.9.nix {
inherit cabal;
@ -242,6 +251,7 @@ rec {
haddock242 = import ../development/tools/documentation/haddock/haddock-2.4.2.nix {
inherit cabal ghcPaths;
inherit (pkgs) libedit;
};
happy = happy1182;