3
0
Fork 0
forked from mirrors/nixpkgs

* Added Tribler. Doesn't quite work yet.

svn path=/nixpkgs/trunk/; revision=27124
This commit is contained in:
Eelco Dolstra 2011-05-03 17:12:31 +00:00
parent 89e94123c6
commit 9afa230dfc
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ stdenv, fetchsvn, pythonPackages, makeWrapper, wxPython, nettools }:
stdenv.mkDerivation {
name = "tribler-5.3.8";
src = fetchsvn {
url = http://svn.tribler.org/abc/tags/tribler-5.3.8;
rev = 19932;
sha256 = "13p8pg09vwcx3hi85p6arsja1g2c9493jxz2a33ypi584p3gblr5";
};
buildInputs = [ pythonPackages.python pythonPackages.wrapPython makeWrapper ];
pythonPath =
[ wxPython pythonPackages.ssl pythonPackages.curses pythonPackages.apsw
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' \
--add-flags $out/share/tribler/Tribler/Main/tribler.py
'';
meta = {
homepage = http://www.tribler.org/;
description = "A completely decentralised P2P filesharing client based on the Bittorrent protocol";
license = "LGPLv2.1";
};
}

View file

@ -6909,6 +6909,8 @@ let
transmission = callPackage ../applications/networking/p2p/transmission { };
tribler = callPackage ../applications/networking/p2p/tribler { };
twinkle = callPackage ../applications/networking/twinkle {
qt = qt3;
boost = boostFull;