Added ANTLR 2.7.6
svn path=/nixpkgs/trunk/; revision=6082
This commit is contained in:
parent
bf1e734f85
commit
1cb5a30f34
11
pkgs/development/tools/parsing/antlr/antlr-2.7.6.nix
Normal file
11
pkgs/development/tools/parsing/antlr/antlr-2.7.6.nix
Normal 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;
|
||||
}
|
16
pkgs/development/tools/parsing/antlr/builder2.sh
Normal file
16
pkgs/development/tools/parsing/antlr/builder2.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user