libtorrent-rasterbar: 1.1.11 -> 1.2.5
https://raw.githubusercontent.com/arvidn/libtorrent/libtorrent-1_2_5/ChangeLog The old release is kept available as libtorrentRasterbar-1_1_x for deluge 1.x.
This commit is contained in:
+2
-4
@@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, pkgconfig, automake, autoconf
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, automake, autoconf
|
||||||
, zlib, boost, openssl, libtool, python, libiconv, geoip, ncurses
|
, zlib, boost, openssl, libtool, python, libiconv, ncurses
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@@ -23,7 +23,7 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
|
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
|
||||||
buildInputs = [ boostPython openssl zlib python libiconv geoip ncurses ];
|
buildInputs = [ boostPython openssl zlib python libiconv ncurses ];
|
||||||
preConfigure = "./autotool.sh";
|
preConfigure = "./autotool.sh";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@@ -35,11 +35,9 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-python-binding"
|
"--enable-python-binding"
|
||||||
"--with-libgeoip=system"
|
|
||||||
"--with-libiconv=yes"
|
"--with-libiconv=yes"
|
||||||
"--with-boost=${boostPython.dev}"
|
"--with-boost=${boostPython.dev}"
|
||||||
"--with-boost-libdir=${boostPython.out}/lib"
|
"--with-boost-libdir=${boostPython.out}/lib"
|
||||||
"--with-libiconv=yes"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, automake, autoconf
|
||||||
|
, zlib, boost, openssl, libtool, python, libiconv, ncurses
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "1.2.5";
|
||||||
|
formattedVersion = lib.replaceChars ["."] ["_"] version;
|
||||||
|
|
||||||
|
# Make sure we override python, so the correct version is chosen
|
||||||
|
# for the bindings, if overridden
|
||||||
|
boostPython = boost.override { enablePython = true; inherit python; };
|
||||||
|
|
||||||
|
in stdenv.mkDerivation {
|
||||||
|
pname = "libtorrent-rasterbar";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "arvidn";
|
||||||
|
repo = "libtorrent";
|
||||||
|
rev = "libtorrent-${formattedVersion}";
|
||||||
|
sha256 = "0y2fzqbvb1bxvf93d7sphwzxih6j40p5p3fay943k26w0nrq802w";
|
||||||
|
};
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
|
||||||
|
buildInputs = [ boostPython openssl zlib python libiconv ncurses ];
|
||||||
|
preConfigure = "./autotool.sh";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
moveToOutput "include" "$dev"
|
||||||
|
moveToOutput "lib/${python.libPrefix}" "$python"
|
||||||
|
'';
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" "python" ];
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--enable-python-binding"
|
||||||
|
"--with-libiconv=yes"
|
||||||
|
"--with-boost=${boostPython.dev}"
|
||||||
|
"--with-boost-libdir=${boostPython.out}/lib"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://libtorrent.org/";
|
||||||
|
description = "A C++ BitTorrent implementation focusing on efficiency and scalability";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = [ maintainers.phreedom ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -2840,6 +2840,7 @@ in
|
|||||||
ddrutility = callPackage ../tools/system/ddrutility { };
|
ddrutility = callPackage ../tools/system/ddrutility { };
|
||||||
|
|
||||||
deluge = callPackage ../applications/networking/p2p/deluge {
|
deluge = callPackage ../applications/networking/p2p/deluge {
|
||||||
|
libtorrentRasterbar = libtorrentRasterbar-1_1_x;
|
||||||
pythonPackages = python2Packages;
|
pythonPackages = python2Packages;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -13241,7 +13242,11 @@ in
|
|||||||
|
|
||||||
libtomcrypt = callPackage ../development/libraries/libtomcrypt { };
|
libtomcrypt = callPackage ../development/libraries/libtomcrypt { };
|
||||||
|
|
||||||
libtorrentRasterbar = callPackage ../development/libraries/libtorrent-rasterbar { };
|
libtorrentRasterbar-1_2_x = callPackage ../development/libraries/libtorrent-rasterbar/1.2 { };
|
||||||
|
|
||||||
|
libtorrentRasterbar-1_1_x = callPackage ../development/libraries/libtorrent-rasterbar/1.1 { };
|
||||||
|
|
||||||
|
libtorrentRasterbar = libtorrentRasterbar-1_2_x;
|
||||||
|
|
||||||
# this is still the new version of the old API
|
# this is still the new version of the old API
|
||||||
libtoxcore-new = callPackage ../development/libraries/libtoxcore/new-api.nix { };
|
libtoxcore-new = callPackage ../development/libraries/libtoxcore/new-api.nix { };
|
||||||
|
|||||||
Reference in New Issue
Block a user