1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/servers/sabnzbd/builder.sh
Wouter den Breejen 3259101fc0 Added par2, unzip/rar as dependencies so they are not picked up from PATH
svn path=/nixpkgs/trunk/; revision=18303
2009-11-08 23:37:49 +00:00

17 lines
553 B
Bash

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)" \
--prefix PATH : "$par2cmdline/bin:$unzip/bin:$unrar/bin"
done
echo $out