2006-12-13 21:30:09 +01:00
|
|
|
{ gui ? false
|
|
|
|
, stdenv, fetchurl, makeWrapper
|
|
|
|
, python, wxPython ? null, pycrypto, twisted
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert gui -> wxPython != null;
|
2004-02-17 21:03:12 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2008-01-18 12:28:41 +01:00
|
|
|
name = "bittorrent-5.2.0";
|
2004-02-17 21:03:12 +01:00
|
|
|
builder = ./builder.sh;
|
2006-12-13 21:30:09 +01:00
|
|
|
|
2004-02-17 21:03:12 +01:00
|
|
|
src = fetchurl {
|
2008-01-18 12:28:41 +01:00
|
|
|
url = http://download.bittorrent.com/dl/BitTorrent-5.2.0.tar.gz;
|
|
|
|
sha256 = "0lg54x5y2k1cb7vpj7hanlnvzqa2k3v24qq0g6fsycjk4n8dky02";
|
2004-02-17 21:03:12 +01:00
|
|
|
};
|
2006-12-13 21:30:09 +01:00
|
|
|
|
2008-01-18 12:28:41 +01:00
|
|
|
buildInputs = [python pycrypto twisted makeWrapper]
|
|
|
|
++ stdenv.lib.optional gui wxPython;
|
2006-10-11 18:45:55 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The original client for the BitTorrent peer-to-peer file sharing protocol";
|
|
|
|
};
|
2004-02-17 21:03:12 +01:00
|
|
|
}
|