summary refs log tree commit diff
path: root/pkgs/servers/sabnzbd/builder.sh
blob: 3a5c8adb421ee94a8a58f8fb7b12dcb81dad475d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
source $stdenv/setup

tar xvfz $src
mv SABnzbd-* $out

# Create a start script and let wrapProgram with toPythonPath wrap it so that python is started with cheetahTemplate in its importpath (classpath)
mkdir $out/bin
echo "$python/bin/python $out/SABnzbd.py \$*" > $out/bin/sabnzbd
chmod +x $out/bin/sabnzbd

for i in $(cd $out/bin && ls); do
  wrapProgram $out/bin/$i --prefix PYTHONPATH : "$(toPythonPath $python):$(toPythonPath $out):$(toPythonPath $cheetahTemplate):$(toPythonPath $sqlite3)" \
                          --prefix PATH : "$par2cmdline/bin:$unzip/bin:$unrar/bin"
done

echo $out