Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 28 lines 452 B view raw
1if [ -e .attrs.sh ]; then source .attrs.sh; fi 2source $stdenv/setup 3 4export JAVA_HOME=$jre 5 6cat >> props <<EOF 7output.dir=$out 8context.javaPath=$jre 9EOF 10 11mkdir -p $out 12$jre/bin/java -jar $src -text props 13 14echo "Removing files at top level" 15for file in $out/* 16do 17 if test -f $file ; then 18 rm $file 19 fi 20done 21 22cat >> $out/bin/aj-runtime-env <<EOF 23#! $SHELL 24 25export CLASSPATH=$CLASSPATH:.:$out/lib/aspectjrt.jar 26EOF 27 28chmod u+x $out/bin/aj-runtime-env