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