nixpkgs/pkgs/tools/text/xml/jing/script-builder.sh

15 lines
201 B
Bash
Raw Normal View History

source $stdenv/setup
ensureDir $out/bin
cat >> $out/bin/jing <<EOF
#! $SHELL
export JAVA_HOME=$jre
export LANG="en_US"
exec $jre/bin/java -jar $jing/bin/jing.jar "\$@"
EOF
chmod a+x $out/bin/jing