12ae5363ea
* Make builders unexecutable by removing the hash-bang line and execute permission. * Convert calls to `derivation' to `mkDerivation'. * Remove `system' and `stdenv' attributes from calls to `mkDerivation'. These transformations were all done automatically, so it is quite possible I broke stuff. * Put the `mkDerivation' function in stdenv/generic. svn path=/nixpkgs/trunk/; revision=874
17 lines
385 B
Bash
17 lines
385 B
Bash
buildinputs="$python $wxPython"
|
|
. $stdenv/setup
|
|
|
|
tar xvfz $src
|
|
cd BitTorrent-*
|
|
python setup.py build install --prefix=$out
|
|
|
|
mv $out/bin $out/bin-orig
|
|
mkdir $out/bin
|
|
for i in $(cd $out/bin-orig && ls); do
|
|
cat > $out/bin/$i <<EOF
|
|
#! /bin/sh
|
|
IFS=
|
|
PYTHONPATH=$out/lib/python2.3/site-packages:$wxPython/lib/python2.3/site-packages exec $out/bin-orig/$i \$@
|
|
EOF
|
|
chmod +x $out/bin/$i
|
|
done |