forked from mirrors/nixpkgs
3f928466df
Also add meta attributes and a wrapper for jing so that it can be invoked directly from the shell as "jing" (similar to Debian/Ubuntu). Trang already has such a wrapper.
15 lines
227 B
Bash
Executable file
15 lines
227 B
Bash
Executable file
set -e
|
|
source $stdenv/setup
|
|
|
|
$unzip/bin/unzip $src
|
|
mkdir -p $out
|
|
mv $name/* $out
|
|
|
|
cat > "$out/bin/jing" <<EOF
|
|
#! $SHELL
|
|
export JAVA_HOME="$jre"
|
|
exec "$jre/bin/java" -jar "$out/bin/jing.jar" "\$@"
|
|
EOF
|
|
|
|
chmod a+x "$out/bin/jing"
|