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 {
|
2010-05-19 07:42:52 -07:00
|
|
|
name = "bittorrent-5.2.2";
|
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 {
|
2010-05-19 07:42:52 -07:00
|
|
|
url = http://download.bittorrent.com/dl/archive/BitTorrent-5.2.2.tar.gz;
|
|
|
|
sha256 = "05k803hbwsyn51j4aibzdsnqxz24kw4rvr60v2c0wji8gcvy3kx9";
|
2004-02-17 12:03:12 -08:00
|
|
|
};
|
2006-12-13 12:30:09 -08:00
|
|
|
|
2010-05-19 07:42:52 -07:00
|
|
|
buildInputs = [ python pycrypto twisted makeWrapper ]
|
2008-01-18 03:28:41 -08:00
|
|
|
++ 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
|
|
|
}
|