mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:44:50 +00:00
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
16 lines
251 B
Bash
16 lines
251 B
Bash
source $stdenv/setup
|
|
|
|
mkdir -p $out/jars
|
|
unzip -j $src '*/trang.jar'
|
|
cp -p *.jar $out/jars
|
|
|
|
mkdir -p $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
|