mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-03-17 01:23:48 +00:00
libtorrentRasterbar-2_0_x: init at 2.0.1
This commit is contained in:
parent
49ea33f24c
commit
1edfaa4a0d
|
@ -0,0 +1,47 @@
|
|||
{ stdenv, fetchFromGitHub, cmake
|
||||
, zlib, boost, openssl, python, ncurses, SystemConfiguration
|
||||
}:
|
||||
|
||||
let
|
||||
version = "2.0.1";
|
||||
|
||||
# Make sure we override python, so the correct version is chosen
|
||||
boostPython = boost.override { enablePython = true; inherit python; };
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
pname = "libtorrent-rasterbar";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "arvidn";
|
||||
repo = "libtorrent";
|
||||
rev = "v${version}";
|
||||
sha256 = "04ppw901babkfkis89pyb8kiyn39kb21k1s838xjq5ghbral1b1c";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ boostPython openssl zlib python ncurses ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ SystemConfiguration ];
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput "include" "$dev"
|
||||
moveToOutput "lib/${python.libPrefix}" "$python"
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "python" ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-Dpython-bindings=on"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://libtorrent.org/";
|
||||
description = "A C++ BitTorrent implementation focusing on efficiency and scalability";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.phreedom ];
|
||||
broken = stdenv.isDarwin;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -3333,7 +3333,7 @@ in
|
|||
|
||||
deluge-2_x = callPackage ../applications/networking/p2p/deluge/2 {
|
||||
pythonPackages = python3Packages;
|
||||
libtorrentRasterbar = libtorrentRasterbar.override { python = python3; };
|
||||
libtorrentRasterbar = libtorrentRasterbar-1_2_x.override { python = python3; };
|
||||
};
|
||||
deluge-1_x = callPackage ../applications/networking/p2p/deluge/1 {
|
||||
pythonPackages = python2Packages;
|
||||
|
@ -14674,13 +14674,18 @@ in
|
|||
|
||||
libtomcrypt = callPackage ../development/libraries/libtomcrypt { };
|
||||
|
||||
libtorrentRasterbar-2_0_x = callPackage ../development/libraries/libtorrent-rasterbar/2.0 {
|
||||
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
|
||||
python = python3;
|
||||
};
|
||||
|
||||
libtorrentRasterbar-1_2_x = callPackage ../development/libraries/libtorrent-rasterbar/1.2 {
|
||||
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
|
||||
};
|
||||
|
||||
libtorrentRasterbar-1_1_x = callPackage ../development/libraries/libtorrent-rasterbar/1.1 { };
|
||||
|
||||
libtorrentRasterbar = libtorrentRasterbar-1_2_x;
|
||||
libtorrentRasterbar = libtorrentRasterbar-2_0_x;
|
||||
|
||||
# this is still the new version of the old API
|
||||
libtoxcore-new = callPackage ../development/libraries/libtoxcore/new-api.nix { };
|
||||
|
|
|
@ -3514,7 +3514,10 @@ in {
|
|||
|
||||
libtmux = callPackage ../development/python-modules/libtmux { };
|
||||
|
||||
libtorrentRasterbar = (toPythonModule (pkgs.libtorrentRasterbar.override { inherit python; })).python;
|
||||
libtorrentRasterbar = if isPy27 then
|
||||
(toPythonModule (pkgs.libtorrentRasterbar-1_2_x.override { inherit python; })).python
|
||||
else
|
||||
(toPythonModule (pkgs.libtorrentRasterbar.override { inherit python; })).python;
|
||||
|
||||
libusb1 = callPackage ../development/python-modules/libusb1 { inherit (pkgs) libusb1; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue