Added ANTLR 2.7.6

svn path=/nixpkgs/trunk/; revision=6082
This commit is contained in:
Martin Bravenboer 2006-08-09 15:09:50 +00:00
parent bf1e734f85
commit 1cb5a30f34
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{stdenv, fetchurl, jre}:
stdenv.mkDerivation {
name = "antlr-2.7.6";
builder = ./builder2.sh;
src = fetchurl {
url = http://www.antlr.org/download/antlr-2.7.6.tar.gz;
md5 = "17d8bf2e814f0a26631aadbbda8d7324";
};
inherit jre;
}

View File

@ -0,0 +1,16 @@
source $stdenv/setup
tar zxvf $src
cd antlr-*
ensureDir $out/bin
ensureDir $out/lib/$name
cp antlr.jar $out/lib/$name
cat > $out/bin/antlr <<EOF
#! $SHELL
$jre/bin/java -cp $out/lib/$name/antlr.jar -Xms200M -Xmx400M antlr.Tool \$*
EOF
chmod u+x $out/bin/antlr