1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/parsing/happy/happy-1.17.nix
Andres Löh 432c157293 * added happy-1.17
svn path=/nixpkgs/trunk/; revision=10208
2008-01-17 18:21:50 +00:00

29 lines
588 B
Nix

{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
";
})