mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
* Added Tribler. Doesn't quite work yet.
svn path=/nixpkgs/trunk/; revision=27124
This commit is contained in:
parent
89e94123c6
commit
9afa230dfc
43
pkgs/applications/networking/p2p/tribler/default.nix
Normal file
43
pkgs/applications/networking/p2p/tribler/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
@ -6909,6 +6909,8 @@ let
|
|||||||
|
|
||||||
transmission = callPackage ../applications/networking/p2p/transmission { };
|
transmission = callPackage ../applications/networking/p2p/transmission { };
|
||||||
|
|
||||||
|
tribler = callPackage ../applications/networking/p2p/tribler { };
|
||||||
|
|
||||||
twinkle = callPackage ../applications/networking/twinkle {
|
twinkle = callPackage ../applications/networking/twinkle {
|
||||||
qt = qt3;
|
qt = qt3;
|
||||||
boost = boostFull;
|
boost = boostFull;
|
||||||
|
Loading…
Reference in New Issue
Block a user