summary refs log tree commit diff
path: root/pkgs/development/tools
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/development/tools
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/development/tools')
-rw-r--r--pkgs/development/tools/parsing/alex/default.nix33
1 files changed, 11 insertions, 22 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
-  ";
-}
+})