mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 03:48:57 +00:00
6da726d56e
svn path=/nixpkgs/trunk/; revision=5579
16 lines
253 B
Bash
16 lines
253 B
Bash
source $stdenv/setup
|
|
|
|
ensureDir $out/jars
|
|
unzip -j $src '*/trang.jar'
|
|
cp -p *.jar $out/jars
|
|
|
|
ensureDir $out/bin
|
|
|
|
cat >> $out/bin/trang <<EOF
|
|
#! $SHELL
|
|
export JAVA_HOME=$jre
|
|
exec $jre/bin/java -jar $out/jars/trang.jar "\$@"
|
|
EOF
|
|
|
|
chmod a+x $out/bin/trang
|