0d44bb4f12
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libtorrent-rasterbar/versions
52 lines
1.5 KiB
Nix
52 lines
1.5 KiB
Nix
{ stdenv, lib, fetchFromGitHub, fetchpatch, pkgconfig, automake, autoconf
|
|
, zlib, boost, openssl, libtool, python, libiconv, geoip, ncurses
|
|
}:
|
|
|
|
let
|
|
version = "1.1.10";
|
|
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 {
|
|
name = "libtorrent-rasterbar-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arvidn";
|
|
repo = "libtorrent";
|
|
rev = "libtorrent-${formattedVersion}";
|
|
sha256 = "0qj1rz52jk95m43cr7l3fi9jmf4pwxncp5mq4hi2vzacfnf79yms";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
|
|
buildInputs = [ boostPython openssl zlib python libiconv geoip ncurses ];
|
|
preConfigure = "./autotool.sh";
|
|
|
|
postInstall = ''
|
|
moveToOutput "include" "$dev"
|
|
moveToOutput "lib/${python.libPrefix}" "$python"
|
|
'';
|
|
|
|
outputs = [ "out" "dev" "python" ];
|
|
|
|
configureFlags = [
|
|
"--enable-python-binding"
|
|
"--with-libgeoip=system"
|
|
"--with-libiconv=yes"
|
|
"--with-boost=${boostPython.dev}"
|
|
"--with-boost-libdir=${boostPython.out}/lib"
|
|
"--with-libiconv=yes"
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|