git.iko.soy/typeable/nixpkgs
on master help sign in
libtorrent-rasterbar: 1.1.6 -> 1.1.7

Also remove the default/generic split as it seems there's only one version anyway.

commit380c91ddfb58aef60d06d6b3c481eb0ad4c4a532 authorobadz <obadz-git@obadz.com> dateTue 1 May 2018, 23:33 (9 years ago) parent51c1329
2 files changed+36−48
pkgs/development/libraries/libtorrent-rasterbar/default.nix+36−5 pkgs/development/libraries/libtorrent-rasterbar/generic.nix−43
pkgs/development/libraries/libtorrent-rasterbar/default.nix+36−5
@@ -1,6 +1,37 @@
1−args@{ callPackage, ... }:
1+{ stdenv, fetchurl, automake, autoconf, boost, openssl, lib, libtool, pkgconfig, zlib, python, libiconv, geoip, ... }:
22
3−callPackage (import ./generic.nix {
4− version = "1.1.6";
5− sha256 = "1xlh0sqypjbx0imw3bkbjwgwb4bm6zl7c0y01p0xsw8ncfmwjll7";
6−}) args
3+stdenv.mkDerivation rec {
4+ name = "libtorrent-rasterbar-${version}";
5+ version = "1.1.7";
6+
7+ src =
8+ let formattedVersion = lib.replaceChars ["."] ["_"] version;
9+ in fetchurl {
10+ url = "https://github.com/arvidn/libtorrent/archive/libtorrent-${formattedVersion}.tar.gz";
11+ sha256 = "0vbw7wcw8x9787rq5fwaibpvvspm3237l8ahbf20gjpzxhn4yfwc";
12+ };
13+
14+ nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
15+ buildInputs = [ boost openssl zlib python libiconv geoip ];
16+
17+ preConfigure = "./autotool.sh";
18+
19+ configureFlags = [
20+ "--enable-python-binding"
21+ "--with-libgeoip=system"
22+ "--with-libiconv=yes"
23+ "--with-boost=${boost.dev}"
24+ "--with-boost-libdir=${boost.out}/lib"
25+ "--with-libiconv=yes"
26+ ];
27+
28+ enableParallelBuilding = true;
29+
30+ meta = with stdenv.lib; {
31+ homepage = http://www.rasterbar.com/products/libtorrent/;
32+ description = "A C++ BitTorrent implementation focusing on efficiency and scalability";
33+ license = licenses.bsd3;
34+ maintainers = [ maintainers.phreedom ];
35+ platforms = platforms.unix;
36+ };
37+}
pkgs/development/libraries/libtorrent-rasterbar/generic.nixdeleted−43
@@ -1,43 +0,0 @@
1−# Version specific options
2−{ version, sha256, patches ? [] }:
3−
4−{ stdenv, fetchurl, automake, autoconf, boost, openssl, lib, libtool, pkgconfig, zlib, python, libiconv, geoip, ... }:
5−
6−let formattedVersion = lib.replaceChars ["."] ["_"] version;
7−
8−in
9−
10−stdenv.mkDerivation rec {
11− name = "libtorrent-rasterbar-${version}";
12−
13− src = fetchurl {
14− url = "https://github.com/arvidn/libtorrent/archive/libtorrent-${formattedVersion}.tar.gz";
15− inherit sha256;
16− };
17−
18− inherit patches;
19−
20− nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
21− buildInputs = [ boost openssl zlib python libiconv geoip ];
22−
23− preConfigure = "./autotool.sh";
24−
25− configureFlags = [
26− "--enable-python-binding"
27− "--with-libgeoip=system"
28− "--with-libiconv=yes"
29− "--with-boost=${boost.dev}"
30− "--with-boost-libdir=${boost.out}/lib"
31− "--with-libiconv=yes"
32− ];
33−
34− enableParallelBuilding = true;
35−
36− meta = with stdenv.lib; {
37− homepage = http://www.rasterbar.com/products/libtorrent/;
38− description = "A C++ BitTorrent implementation focusing on efficiency and scalability";
39− license = licenses.bsd3;
40− maintainers = [ maintainers.phreedom ];
41− platforms = platforms.unix;
42− };
43−}