nixpkgs-suyu/pkgs/development/libraries/libtorrent-rasterbar/generic.nix
Nikolay Amiantov 8f43c56755 libtorrentRasterbar: 1.1.4 -> 1.1.5
Fixes build with new Boost. Also add corresponding patch to
libtorrentRasterbar_1_0.
2017-10-18 03:15:23 +03:00

43 lines
1.2 KiB
Nix

# Version specific options
{ version, sha256, patches ? [] }:
{ stdenv, fetchurl, automake, autoconf, boost, openssl, lib, libtool, pkgconfig, zlib, python, libiconv, geoip, ... }:
let formattedVersion = lib.replaceChars ["."] ["_"] version;
in
stdenv.mkDerivation rec {
name = "libtorrent-rasterbar-${version}";
src = fetchurl {
url = "https://github.com/arvidn/libtorrent/archive/libtorrent-${formattedVersion}.tar.gz";
inherit sha256;
};
inherit patches;
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
buildInputs = [ boost openssl zlib python libiconv geoip ];
preConfigure = "./autotool.sh";
configureFlags = [
"--enable-python-binding"
"--with-libgeoip=system"
"--with-libiconv=yes"
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.out}/lib"
"--with-libiconv=yes"
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = http://www.rasterbar.com/products/libtorrent/;
description = "A C++ BitTorrent implementation focusing on efficiency and scalability";
license = licenses.bsd3;
maintainers = [ maintainers.phreedom ];
platforms = platforms.linux;
};
}