1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00

Added ANTLR 3 beta

svn path=/nixpkgs/trunk/; revision=6033
This commit is contained in:
Martin Bravenboer 2006-08-03 16:08:25 +00:00
parent 604ca29bf0
commit a31de1c856
3 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,23 @@
source $stdenv/setup
tar zxvf $src
cd antlr-*
cd lib
ensureDir $out/lib/antlr
ensureDir $out/bin
cp *.jar $out/lib/antlr
classpath=""
for jar in $out/lib/antlr/*.jar; do
classpath="$classpath:$jar"
done
cat > $out/bin/antlr <<EOF
#! $SHELL
$jre/bin/java -cp $classpath -Xms200M -Xmx400M org.antlr.Tool \$*
EOF
chmod u+x $out/bin/antlr

View file

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

View file

@ -580,6 +580,10 @@ rec {
m4 = gnum4;
};
antlr = (import ../development/tools/parsing/antlr) {
inherit fetchurl stdenv jre;
};
gcc = useFromStdenv (stdenv ? gcc) stdenv.gcc gcc41;
gcc_static = (import ../development/compilers/gcc-static-3.4) {