mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
2a0a12f333
This change in the GHC 7.6.3 profile violates Haskell Platform, but it fixes many builds that would not succeed otherwise (such as Trifecta). Overriding hashable locally in an expression is out of question: the package is used virtually everywhere.
47 lines
1.8 KiB
Nix
47 lines
1.8 KiB
Nix
{ 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
|
|
sed -i -e 's|hashable *==1.1.2.5,|hashable,|' $sourceRoot/${self.pname}.cabal
|
|
'';
|
|
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
|
|
];
|
|
};
|
|
})
|