summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAndres Löh <mail@andres-loeh.de>2008-01-22 22:43:38 +0000
committerAndres Löh <mail@andres-loeh.de>2008-01-22 22:43:38 +0000
commit61adeec0e5f147a89a49b88f629773db025de3a1 (patch)
treef51ee795ec9c5cf38e449807bd23d73dcdaa4769 /pkgs
parent84e7b463f57332178ff4a10ae8ca76636eebf34a (diff)
* 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
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/parsing/alex/default.nix33
-rw-r--r--pkgs/top-level/all-packages.nix50
2 files changed, 36 insertions, 47 deletions
diff --git a/pkgs/development/tools/parsing/alex/default.nix b/pkgs/development/tools/parsing/alex/default.nix
index 00d414d56bde5..273a25753e82f 100644
--- a/pkgs/development/tools/parsing/alex/default.nix
+++ b/pkgs/development/tools/parsing/alex/default.nix
@@ -1,23 +1,12 @@
-{stdenv, fetchurl, ghc, 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, perl}:
+
+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
-  ";
-}
+})
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 1b20191086366..073fd45cdd49c 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1075,7 +1075,7 @@ rec {
   #  m4 = gnum4;
   #};
 
-  ghc = ghc661;
+  ghc = ghc68;
 
   ghc68 = import ../development/compilers/ghc-6.8 {
     inherit fetchurl stdenv readline perl gmp ncurses;
@@ -1115,7 +1115,8 @@ rec {
   */
 
   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
@@ -1384,7 +1385,7 @@ rec {
 
 
   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 {
@@ -1498,16 +1499,15 @@ rec {
   };
 
   haddock = import ../development/tools/documentation/haddock {
-    cabal = cabal68;
+    inherit cabal;
   };
 
-  happy = import ../development/tools/parsing/happy {
-    inherit fetchurl stdenv perl ghc;
-  };
+  # happy = import ../development/tools/parsing/happy {
+  #   inherit fetchurl stdenv perl ghc;
+  # };
 
-  happy117 = import ../development/tools/parsing/happy/happy-1.17.nix {
-    inherit perl;
-    cabal = cabal68;  # because happy-1.17 depends on cabal-1.2
+  happy = import ../development/tools/parsing/happy/happy-1.17.nix {
+    inherit cabal perl;
   };
 
   help2man = import ../development/tools/misc/help2man {
@@ -2641,7 +2641,7 @@ rec {
   ### DEVELOPMENT / LIBRARIES / HASKELL
 
   binary = import ../development/libraries/haskell/binary {
-    cabal = cabal68;
+    inherit cabal; 
   };
 
   # cabal is a utility function to build cabal-based
@@ -2650,9 +2650,10 @@ rec {
     inherit stdenv fetchurl;
     ghc = ghc68;
   };
+  cabal = cabal68;
 
   Crypto = import ../development/libraries/haskell/Crypto {
-    cabal = cabal68;
+    inherit cabal;
   };
 
   gtk2hs = import ../development/libraries/haskell/gtk2hs {
@@ -2662,13 +2663,12 @@ rec {
   };
 
   pcreLight = import ../development/libraries/haskell/pcre-light {
-    inherit pcre;
-    cabal = cabal68;
+    inherit cabal pcre;
   };
 
-  uulib64 = import ../development/libraries/haskell/uulib { # !!! remove?
-    inherit stdenv fetchurl ghc;
-  };
+  # uulib64 = import ../development/libraries/haskell/uulib { # !!! remove?
+  #   inherit stdenv fetchurl ghc;
+  # };
 
   uulib66 = import ../development/libraries/haskell/uulib-ghc-6.6 { # !!! ugh
     inherit stdenv fetchurl autoconf;
@@ -2676,7 +2676,8 @@ rec {
   };
 
   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 {
@@ -2685,18 +2686,17 @@ rec {
   # }));
 
   X11 = import ../development/libraries/haskell/X11 {
+    inherit cabal;
     inherit (xlibs) libX11 libXinerama libXext;
     xineramaSupport = true;
-    cabal = cabal68;
   };
 
   vty = import ../development/libraries/haskell/vty {
-    cabal = cabal68;
+    inherit cabal;
   };
 
   zlibHaskell = import ../development/libraries/haskell/zlib {
-    inherit zlib;
-    cabal = cabal68;
+    inherit cabal zlib;
   };
 
   ### DEVELOPMENT / PERL MODULES
@@ -4014,7 +4014,8 @@ rec {
   };
   
   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 {
@@ -4785,9 +4786,8 @@ rec {
   };
 
   xmonad = import ../applications/window-managers/xmonad {
-    inherit stdenv fetchurl X11;
+    inherit stdenv fetchurl ghc X11;
     inherit (xlibs) xmessage;
-    ghc=ghc68;
   };
 
   xpdf = import ../applications/misc/xpdf {