libtorrent-rasterbar: 1.1.6 -> 1.1.7

Also remove the default/generic split as it seems there's only one
version anyway.
This commit is contained in:
obadz 2018-05-01 23:33:06 +01:00 committed by Robin Gloster
parent 51c13292bd
commit 380c91ddfb
2 changed files with 36 additions and 48 deletions

View File

@ -1,6 +1,37 @@
args@{ callPackage, ... }: { stdenv, fetchurl, automake, autoconf, boost, openssl, lib, libtool, pkgconfig, zlib, python, libiconv, geoip, ... }:
callPackage (import ./generic.nix { stdenv.mkDerivation rec {
version = "1.1.6"; name = "libtorrent-rasterbar-${version}";
sha256 = "1xlh0sqypjbx0imw3bkbjwgwb4bm6zl7c0y01p0xsw8ncfmwjll7"; version = "1.1.7";
}) args
src =
let formattedVersion = lib.replaceChars ["."] ["_"] version;
in fetchurl {
url = "https://github.com/arvidn/libtorrent/archive/libtorrent-${formattedVersion}.tar.gz";
sha256 = "0vbw7wcw8x9787rq5fwaibpvvspm3237l8ahbf20gjpzxhn4yfwc";
};
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.unix;
};
}

View File

@ -1,43 +0,0 @@
# 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.unix;
};
}