Added ANTLR 3 beta
svn path=/nixpkgs/trunk/; revision=6033
This commit is contained in:
parent
604ca29bf0
commit
a31de1c856
23
pkgs/development/tools/parsing/antlr/builder.sh
Normal file
23
pkgs/development/tools/parsing/antlr/builder.sh
Normal 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
|
11
pkgs/development/tools/parsing/antlr/default.nix
Normal file
11
pkgs/development/tools/parsing/antlr/default.nix
Normal 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;
|
||||
}
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user