nixpkgs/pkgs/tools/networking/p2p/bittorrent/builder.sh
Eelco Dolstra 90b3af3bd7 * Bittorrent updated to 5.2.2 (5.3 seems too hard to build).
svn path=/nixpkgs/trunk/; revision=21877
2010-05-19 14:42:52 +00:00

28 lines
565 B
Bash

source $stdenv/setup
# Workaround for:
# File "...-python-2.4.4/lib/python2.4/posixpath.py", line 62, in join
# elif path == '' or path.endswith('/'):
# AttributeError: 'NoneType' object has no attribute 'endswith'
export HOME=$TMP
buildPhase() {
python setup.py build
}
installPhase() {
python setup.py install --prefix=$out
# Create wrappers that set the environment correctly.
for i in $(cd $out/bin && ls); do
wrapProgram $out/bin/$i \
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
done
}
genericBuild