mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
20 lines
432 B
Bash
20 lines
432 B
Bash
source $stdenv/setup
|
|
|
|
mkdir -p $out/jars
|
|
cp $src $out/jars/azureus.jar
|
|
|
|
mkdir -p $out/bin
|
|
cat > $out/bin/azureus <<EOF
|
|
#! $SHELL -e
|
|
azureusHome=$out
|
|
if test -n "\$HOME"; then
|
|
azureusHome=\$HOME/.Azureus
|
|
fi
|
|
exec $jdk/bin/java -Xms16m -Xmx128m \
|
|
-cp $out/jars/azureus.jar:$swt/jars/swt.jar \
|
|
-Djava.library.path=$swt/lib \
|
|
-Dazureus.install.path=\$azureusHome \
|
|
org.gudy.azureus2.ui.swt.Main
|
|
EOF
|
|
chmod +x $out/bin/azureus
|