mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
c158c5bc15
Reduce the closure size from 1.0G to 174.7M.
19 lines
596 B
Bash
Executable File
19 lines
596 B
Bash
Executable File
#! @bash@/bin/bash
|
|
set -eo pipefail
|
|
PATH=@coreutils@/bin:$PATH
|
|
export CLASSPATH=$(find @outFreenet@/deps/ -name "*.jar"|grep -v bcprov-jdk15on-1.48.jar|tr $'\n' :)
|
|
CLASSPATH=$CLASSPATH:@outFreenet@/share/freenet/freenet-ext.jar:@outFreenet@/share/freenet/freenet.jar
|
|
|
|
export FREENET_HOME="$HOME/.local/share/freenet"
|
|
if [ -n "$XDG_DATA_HOME" ] ; then
|
|
FREENET_HOME="$XDG_DATA_HOME/freenet"
|
|
fi
|
|
|
|
mkdir -p -- $FREENET_HOME
|
|
|
|
cp -u -- @seednodes@ $FREENET_HOME/seednodes.fref
|
|
chmod u+rw -- $FREENET_HOME/seednodes.fref
|
|
|
|
cd -- $FREENET_HOME
|
|
exec @jre@/bin/java -Xmx1024M freenet.node.NodeStarter "$@"
|