mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03: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
|