* update alex to 2.2 and to use the generic Cabal builder
* change default version of ghc to ghc-6.8.2 * some references to ghc-6.6 and ghc-6.6.1 are left; these are packages that to my knowledge don't work without ghc-6.8.2 without some kind of work (such as upgrading to a later version or some patch); I'll try to perform these remaining upgrades soon ... svn path=/nixpkgs/trunk/; revision=10253
This commit is contained in:
@@ -1,23 +1,12 @@
|
||||
{stdenv, fetchurl, ghc, perl}:
|
||||
{cabal, perl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "alex-2.1.0";
|
||||
src = fetchurl {
|
||||
url = http://www.haskell.org/alex/dist/2.1.0/alex-2.1.0.tar.gz;
|
||||
sha1 = "37599b7be5249d639b3a5a3fdc61907dc4dad660";
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "alex";
|
||||
version = "2.2";
|
||||
name = self.fname;
|
||||
sha256 = "e958d4fc6cfdb1d351dc39a45ea882f23b1b1773a736d43814a52d4939a41ffe";
|
||||
extraBuildInputs = [perl];
|
||||
meta = {
|
||||
description = "A lexical analyser generator for Haskell";
|
||||
};
|
||||
buildInputs = [ghc perl];
|
||||
|
||||
configurePhase = "
|
||||
ghc --make Setup.lhs
|
||||
./Setup configure --prefix=\"\${out}\"
|
||||
";
|
||||
|
||||
buildPhase = "
|
||||
./Setup build
|
||||
";
|
||||
|
||||
installPhase = "
|
||||
./Setup install
|
||||
";
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user