* 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:
Andres Löh 2008-01-22 22:43:38 +00:00
parent 84e7b463f5
commit 61adeec0e5
2 changed files with 35 additions and 46 deletions

View File

@ -1,23 +1,12 @@
{stdenv, fetchurl, ghc, perl}: {cabal, perl}:
stdenv.mkDerivation { cabal.mkDerivation (self : {
name = "alex-2.1.0"; pname = "alex";
src = fetchurl { version = "2.2";
url = http://www.haskell.org/alex/dist/2.1.0/alex-2.1.0.tar.gz; name = self.fname;
sha1 = "37599b7be5249d639b3a5a3fdc61907dc4dad660"; 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
";
}

View File

@ -1075,7 +1075,7 @@ rec {
# m4 = gnum4; # m4 = gnum4;
#}; #};
ghc = ghc661; ghc = ghc68;
ghc68 = import ../development/compilers/ghc-6.8 { ghc68 = import ../development/compilers/ghc-6.8 {
inherit fetchurl stdenv readline perl gmp ncurses; inherit fetchurl stdenv readline perl gmp ncurses;
@ -1115,7 +1115,8 @@ rec {
*/ */
helium = import ../development/compilers/helium { helium = import ../development/compilers/helium {
inherit fetchurl stdenv ghc; inherit fetchurl stdenv;
ghc = ghc661;
}; };
#TODO add packages http://cvs.haskell.org/Hugs/downloads/2006-09/packages/ and test #TODO add packages http://cvs.haskell.org/Hugs/downloads/2006-09/packages/ and test
@ -1384,7 +1385,7 @@ rec {
alex = import ../development/tools/parsing/alex { alex = import ../development/tools/parsing/alex {
inherit fetchurl stdenv ghc perl; inherit cabal perl;
}; };
antlr = import ../development/tools/parsing/antlr/antlr-2.7.6.nix { antlr = import ../development/tools/parsing/antlr/antlr-2.7.6.nix {
@ -1498,16 +1499,15 @@ rec {
}; };
haddock = import ../development/tools/documentation/haddock { haddock = import ../development/tools/documentation/haddock {
cabal = cabal68; inherit cabal;
}; };
happy = import ../development/tools/parsing/happy { # happy = import ../development/tools/parsing/happy {
inherit fetchurl stdenv perl ghc; # inherit fetchurl stdenv perl ghc;
}; # };
happy117 = import ../development/tools/parsing/happy/happy-1.17.nix { happy = import ../development/tools/parsing/happy/happy-1.17.nix {
inherit perl; inherit cabal perl;
cabal = cabal68; # because happy-1.17 depends on cabal-1.2
}; };
help2man = import ../development/tools/misc/help2man { help2man = import ../development/tools/misc/help2man {
@ -2641,7 +2641,7 @@ rec {
### DEVELOPMENT / LIBRARIES / HASKELL ### DEVELOPMENT / LIBRARIES / HASKELL
binary = import ../development/libraries/haskell/binary { binary = import ../development/libraries/haskell/binary {
cabal = cabal68; inherit cabal;
}; };
# cabal is a utility function to build cabal-based # cabal is a utility function to build cabal-based
@ -2650,9 +2650,10 @@ rec {
inherit stdenv fetchurl; inherit stdenv fetchurl;
ghc = ghc68; ghc = ghc68;
}; };
cabal = cabal68;
Crypto = import ../development/libraries/haskell/Crypto { Crypto = import ../development/libraries/haskell/Crypto {
cabal = cabal68; inherit cabal;
}; };
gtk2hs = import ../development/libraries/haskell/gtk2hs { gtk2hs = import ../development/libraries/haskell/gtk2hs {
@ -2662,13 +2663,12 @@ rec {
}; };
pcreLight = import ../development/libraries/haskell/pcre-light { pcreLight = import ../development/libraries/haskell/pcre-light {
inherit pcre; inherit cabal pcre;
cabal = cabal68;
}; };
uulib64 = import ../development/libraries/haskell/uulib { # !!! remove? # uulib64 = import ../development/libraries/haskell/uulib { # !!! remove?
inherit stdenv fetchurl ghc; # inherit stdenv fetchurl ghc;
}; # };
uulib66 = import ../development/libraries/haskell/uulib-ghc-6.6 { # !!! ugh uulib66 = import ../development/libraries/haskell/uulib-ghc-6.6 { # !!! ugh
inherit stdenv fetchurl autoconf; inherit stdenv fetchurl autoconf;
@ -2676,7 +2676,8 @@ rec {
}; };
wxHaskell = import ../development/libraries/haskell/wxHaskell { wxHaskell = import ../development/libraries/haskell/wxHaskell {
inherit stdenv fetchurl unzip ghc wxGTK; inherit stdenv fetchurl unzip wxGTK;
ghc = ghc661;
}; };
# wxHaskell68 = lowPrio (appendToName "ghc68" (import ../development/libraries/haskell/wxHaskell { # wxHaskell68 = lowPrio (appendToName "ghc68" (import ../development/libraries/haskell/wxHaskell {
@ -2685,18 +2686,17 @@ rec {
# })); # }));
X11 = import ../development/libraries/haskell/X11 { X11 = import ../development/libraries/haskell/X11 {
inherit cabal;
inherit (xlibs) libX11 libXinerama libXext; inherit (xlibs) libX11 libXinerama libXext;
xineramaSupport = true; xineramaSupport = true;
cabal = cabal68;
}; };
vty = import ../development/libraries/haskell/vty { vty = import ../development/libraries/haskell/vty {
cabal = cabal68; inherit cabal;
}; };
zlibHaskell = import ../development/libraries/haskell/zlib { zlibHaskell = import ../development/libraries/haskell/zlib {
inherit zlib; inherit cabal zlib;
cabal = cabal68;
}; };
### DEVELOPMENT / PERL MODULES ### DEVELOPMENT / PERL MODULES
@ -4014,7 +4014,8 @@ rec {
}; };
darcs = import ../applications/version-management/darcs { darcs = import ../applications/version-management/darcs {
inherit fetchurl stdenv ghc zlib ncurses curl; inherit fetchurl stdenv zlib ncurses curl;
ghc = ghc661;
}; };
dia = import ../applications/graphics/dia { dia = import ../applications/graphics/dia {
@ -4785,9 +4786,8 @@ rec {
}; };
xmonad = import ../applications/window-managers/xmonad { xmonad = import ../applications/window-managers/xmonad {
inherit stdenv fetchurl X11; inherit stdenv fetchurl ghc X11;
inherit (xlibs) xmessage; inherit (xlibs) xmessage;
ghc=ghc68;
}; };
xpdf = import ../applications/misc/xpdf { xpdf = import ../applications/misc/xpdf {