* added alex (lexer generator for Haskell)

svn path=/nixpkgs/trunk/; revision=9906
This commit is contained in:
Andres Löh 2007-12-11 13:38:48 +00:00
parent 08bf29ef70
commit d9b8b152d6
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{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";
};
buildInputs = [ghc perl];
configurePhase = "
ghc --make Setup.lhs
./Setup configure --prefix=\"\${out}\"
";
buildPhase = "
./Setup build
";
installPhase = "
./Setup install
";
}