summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndres Löh <mail@andres-loeh.de>2008-01-17 18:21:50 +0000
committerAndres Löh <mail@andres-loeh.de>2008-01-17 18:21:50 +0000
commit432c157293ae2aab3dea494b7eef5489123475c0 (patch)
treefa03ca262e2c58fcd12103becec7e1298723d550
parent9758a20f67db1f659182e56a0b38a221cfca4cdc (diff)
downloadnixpkgs-432c157293ae2aab3dea494b7eef5489123475c0.tar
nixpkgs-432c157293ae2aab3dea494b7eef5489123475c0.tar.gz
nixpkgs-432c157293ae2aab3dea494b7eef5489123475c0.tar.bz2
nixpkgs-432c157293ae2aab3dea494b7eef5489123475c0.tar.lz
nixpkgs-432c157293ae2aab3dea494b7eef5489123475c0.tar.xz
nixpkgs-432c157293ae2aab3dea494b7eef5489123475c0.tar.zst
nixpkgs-432c157293ae2aab3dea494b7eef5489123475c0.zip
* added happy-1.17
svn path=/nixpkgs/trunk/; revision=10208
-rw-r--r--pkgs/development/tools/parsing/happy/happy-1.17.nix28
-rw-r--r--pkgs/top-level/all-packages.nix5
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/tools/parsing/happy/happy-1.17.nix b/pkgs/development/tools/parsing/happy/happy-1.17.nix
new file mode 100644
index 00000000000..663dc15bc51
--- /dev/null
+++ b/pkgs/development/tools/parsing/happy/happy-1.17.nix
@@ -0,0 +1,28 @@
+{stdenv, fetchurl, perl, ghc}:
+
+stdenv.mkDerivation (rec {
+
+  # requires cabal-1.2 (and therefore, in Nix, currently ghc-6.8)
+
+  pname = "happy";
+  version = "1.17";
+  name = "${pname}-${version}";
+  src = fetchurl {
+    url = "http://www.haskell.org/happy/dist/${version}/${name}.tar.gz";
+    sha256 = "dca4e47d17e5d538335496236b3d2c3cbff644cf7380c987a4714e7784c70a2b";
+  };
+  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 7e88c7c0c57..30444473068 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1473,6 +1473,11 @@ rec {
     inherit fetchurl stdenv perl ghc;
   };
 
+  happy117 = import ../development/tools/parsing/happy/happy-1.17.nix {
+    inherit fetchurl stdenv perl;
+    ghc = ghc68;  # because happy-1.17 depends on cabal-1.2
+  };
+
   help2man = import ../development/tools/misc/help2man {
     inherit fetchurl stdenv perl gettext perlLocaleGettext;
   };