2011-04-04 10:45:05 +02:00
|
|
|
{cabal, fetchurl, GLUT, HTTP, HUnit, OpenGL, QuickCheck, cgi, fgl,
|
|
|
|
haskellSrc, html, network, parallel, parsec, regexBase, regexCompat, regexPosix,
|
|
|
|
stm, syb, deepseq, text, transformers, mtl, xhtml, zlib,
|
|
|
|
cabalInstall, alex, happy, haddock, ghc}:
|
|
|
|
|
2011-08-05 10:52:35 +02:00
|
|
|
# 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.
|
|
|
|
|
2011-04-04 10:45:05 +02:00
|
|
|
cabal.mkDerivation (self : {
|
|
|
|
pname = "haskell-platform";
|
|
|
|
version = "2011.2.0.1";
|
2011-08-05 10:52:35 +02:00
|
|
|
cabalFile = ./haskell-platform-2011.2.0.1.cabal;
|
|
|
|
setupFile = ./Setup.hs;
|
|
|
|
src = null;
|
2011-04-04 10:45:05 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
GLUT HTTP HUnit OpenGL QuickCheck cgi fgl
|
|
|
|
haskellSrc html network parallel parsec regexBase regexCompat regexPosix
|
|
|
|
stm syb deepseq text transformers mtl xhtml zlib
|
|
|
|
cabalInstall alex happy ghc haddock
|
|
|
|
];
|
2011-08-05 10:52:35 +02:00
|
|
|
unpackPhase = ''
|
|
|
|
sourceRoot=haskell-platform
|
|
|
|
mkdir $sourceRoot
|
|
|
|
cp ${self.cabalFile} $sourceRoot/${self.pname}.cabal
|
|
|
|
cp ${self.setupFile} $sourceRoot/Setup.hs
|
|
|
|
touch $sourceRoot/LICENSE
|
2011-04-04 10:45:05 +02:00
|
|
|
'';
|
|
|
|
noHaddock = true;
|
|
|
|
meta = {
|
|
|
|
description = "Haskell Platform meta package";
|
|
|
|
maintainers = [self.stdenv.lib.maintainers.andres];
|
|
|
|
};
|
|
|
|
})
|
|
|
|
|