2011-05-04 10:55:30 +02:00
|
|
|
{ stdenv, fetchsvn, pythonPackages, makeWrapper, nettools }:
|
2011-05-03 19:12:31 +02:00
|
|
|
|
2011-09-02 13:11:48 +02:00
|
|
|
let rev = "22245"; in
|
|
|
|
|
2011-05-03 19:12:31 +02:00
|
|
|
stdenv.mkDerivation {
|
2011-09-02 13:11:48 +02:00
|
|
|
name = "tribler-5.4.2-pre${rev}";
|
2011-05-03 19:12:31 +02:00
|
|
|
|
|
|
|
src = fetchsvn {
|
2011-09-02 13:11:48 +02:00
|
|
|
url = http://svn.tribler.org/abc/branches/release-5.4.x;
|
|
|
|
inherit rev;
|
|
|
|
sha256 = "09b3iz3yy1dpl30cd2iningzhm1grz6qjgv0qb3wk0v1vxkacddz";
|
2011-05-03 19:12:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pythonPackages.python pythonPackages.wrapPython makeWrapper ];
|
|
|
|
|
|
|
|
pythonPath =
|
2011-05-04 10:55:30 +02:00
|
|
|
[ pythonPackages.wxPython pythonPackages.ssl pythonPackages.curses pythonPackages.apsw
|
2011-05-03 19:12:31 +02:00
|
|
|
pythonPackages.setuptools pythonPackages.m2crypto pythonPackages.sqlite3
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
substituteInPlace Tribler/Core/NATFirewall/guessip.py \
|
|
|
|
--replace /bin/netstat ${nettools}/bin/netstat \
|
|
|
|
--replace /sbin/ifconfig ${nettools}/sbin/ifconfig
|
|
|
|
|
|
|
|
# Nasty hack; call wrapPythonPrograms to set program_PYTHONPATH.
|
|
|
|
wrapPythonPrograms
|
|
|
|
|
|
|
|
mkdir -p $out/share/tribler
|
|
|
|
cp -prvd Tribler $out/share/tribler/
|
|
|
|
|
|
|
|
makeWrapper ${pythonPackages.python}/bin/python $out/bin/tribler \
|
|
|
|
--set _TRIBLERPATH $out/share/tribler \
|
|
|
|
--set PYTHONPATH $out/share/tribler:$program_PYTHONPATH \
|
|
|
|
--run 'cd $_TRIBLERPATH' \
|
2011-09-15 00:54:35 +02:00
|
|
|
--add-flags "-O $out/share/tribler/Tribler/Main/tribler.py"
|
2011-05-03 19:12:31 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.tribler.org/;
|
|
|
|
description = "A completely decentralised P2P filesharing client based on the Bittorrent protocol";
|
|
|
|
license = "LGPLv2.1";
|
|
|
|
};
|
|
|
|
}
|