* Update of jre
* Added aspectj-1.5.0 svn path=/nixpkgs/trunk/; revision=5110
This commit is contained in:
27
pkgs/development/compilers/aspectj/builder.sh
Executable file
27
pkgs/development/compilers/aspectj/builder.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
source $stdenv/setup
|
||||
|
||||
export JAVA_HOME=$jre
|
||||
|
||||
cat >> props <<EOF
|
||||
output.dir=$out
|
||||
context.javaPath=$jre
|
||||
EOF
|
||||
|
||||
ensureDir $out
|
||||
$jre/bin/java -jar $src -text props
|
||||
|
||||
echo "Removing files at top level"
|
||||
for file in $out/*
|
||||
do
|
||||
if test -f $file ; then
|
||||
rm $file
|
||||
fi
|
||||
done
|
||||
|
||||
cat >> $out/bin/ajc-env <<EOF
|
||||
#! $SHELL
|
||||
|
||||
export CLASSPATH=$CLASSPATH:.:/pkg/aspectj/lib/aspectjrt.jar
|
||||
EOF
|
||||
|
||||
chmod u+x $out/bin/ajc-env
|
||||
14
pkgs/development/compilers/aspectj/default.nix
Normal file
14
pkgs/development/compilers/aspectj/default.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{stdenv, fetchurl, jre}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "aspectj-1.5.0";
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/technology/aspectj/aspectj-1.5.0.jar;
|
||||
md5 = "76d716f699cdd84049323992b21f02fb";
|
||||
};
|
||||
|
||||
inherit jre;
|
||||
buildInputs = [jre];
|
||||
}
|
||||
Reference in New Issue
Block a user