44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ stdenv, fetchsvn, pythonPackages, makeWrapper, 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 =
|
|
[ pythonPackages.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";
|
|
};
|
|
}
|