Revert "fix bittorrent by using buildPythonPackage"
This reverts commit c029f9f7fe86867cfd94461996dc6a6415e0e8d0. svn path=/nixpkgs/branches/stdenv-updates/; revision=32639
This commit is contained in:
parent
350edcbb9d
commit
ee15dc2327
27
pkgs/tools/networking/p2p/bittorrent/builder.sh
Normal file
27
pkgs/tools/networking/p2p/bittorrent/builder.sh
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
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
|
@ -1,25 +1,20 @@
|
|||||||
{ gui ? false
|
{ gui ? false
|
||||||
, stdenv, fetchurl, makeWrapper
|
, stdenv, fetchurl, makeWrapper
|
||||||
, python, wxPython ? null, pycrypto, twisted, buildPythonPackage
|
, python, wxPython ? null, pycrypto, twisted
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert gui -> wxPython != null;
|
assert gui -> wxPython != null;
|
||||||
|
|
||||||
buildPythonPackage rec {
|
stdenv.mkDerivation {
|
||||||
name = "bittorrent-5.2.2";
|
name = "bittorrent-5.2.2";
|
||||||
|
|
||||||
|
builder = ./builder.sh;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://download.bittorrent.com/dl/archive/BitTorrent-5.2.2.tar.gz;
|
url = http://download.bittorrent.com/dl/archive/BitTorrent-5.2.2.tar.gz;
|
||||||
sha256 = "05k803hbwsyn51j4aibzdsnqxz24kw4rvr60v2c0wji8gcvy3kx9";
|
sha256 = "05k803hbwsyn51j4aibzdsnqxz24kw4rvr60v2c0wji8gcvy3kx9";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
export HOME=$TMP
|
|
||||||
'';
|
|
||||||
|
|
||||||
# accesses network
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
buildInputs = [ python pycrypto twisted makeWrapper ]
|
buildInputs = [ python pycrypto twisted makeWrapper ]
|
||||||
++ stdenv.lib.optional gui wxPython;
|
++ stdenv.lib.optional gui wxPython;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user