aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libtorrent-rasterbar
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-10-31 19:30:09 -0700
committerWilliam A. Kennington III <william@wkennington.com>2014-11-02 17:22:28 -0800
commit4c0d152d1ee7c5a5bdb279e65dddf2f25bedd42a (patch)
treeb5c55b0641afa1201a0df1d8134cd393b053c157 /pkgs/development/libraries/libtorrent-rasterbar
parent3aa7f2222883b7dc690d4f55f52366e7ced297e8 (diff)
libtorrent-rasterbar: Add generic builder and 0.16.x derivation
Diffstat (limited to 'pkgs/development/libraries/libtorrent-rasterbar')
-rw-r--r--pkgs/development/libraries/libtorrent-rasterbar/0.16.nix6
-rw-r--r--pkgs/development/libraries/libtorrent-rasterbar/default.nix30
-rw-r--r--pkgs/development/libraries/libtorrent-rasterbar/generic.nix30
3 files changed, 41 insertions, 25 deletions
diff --git a/pkgs/development/libraries/libtorrent-rasterbar/0.16.nix b/pkgs/development/libraries/libtorrent-rasterbar/0.16.nix
new file mode 100644
index 000000000000..6298f2f0c0f3
--- /dev/null
+++ b/pkgs/development/libraries/libtorrent-rasterbar/0.16.nix
@@ -0,0 +1,6 @@
+{ callPackage, ... } @ args:
+
+callPackage ./generic.nix (args // {
+ version = "0.16.17";
+ sha256 = "1w5gcizd6jlvzwgy0307az856h0cly685yf275p1v6bdcafd58b7";
+})
diff --git a/pkgs/development/libraries/libtorrent-rasterbar/default.nix b/pkgs/development/libraries/libtorrent-rasterbar/default.nix
index 761fe1d94fb2..e1f1fc179d63 100644
--- a/pkgs/development/libraries/libtorrent-rasterbar/default.nix
+++ b/pkgs/development/libraries/libtorrent-rasterbar/default.nix
@@ -1,26 +1,6 @@
-{ stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconvOrNull, geoip }:
+{ callPackage, ... } @ args:
-stdenv.mkDerivation rec {
- name = "libtorrent-rasterbar-1.0.2";
-
- src = fetchurl {
- url = "mirror://sourceforge/libtorrent/${name}.tar.gz";
- sha256 = "1ph4cb6nrk2hiy89j3kz1wj16ph0b9yixrf4f4935rnzhha8x31w";
- };
-
- buildInputs = [ boost pkgconfig openssl zlib python libiconvOrNull geoip ];
-
- configureFlags = [
- "--enable-python-binding"
- "--with-libgeoip=system"
- "--with-libiconv=yes"
- "--with-boost=${boost.lib}"
- ];
-
- 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 ];
- };
-}
+callPackage ./generic.nix (args // {
+ version = "1.0.2";
+ sha256 = "1ph4cb6nrk2hiy89j3kz1wj16ph0b9yixrf4f4935rnzhha8x31w";
+})
diff --git a/pkgs/development/libraries/libtorrent-rasterbar/generic.nix b/pkgs/development/libraries/libtorrent-rasterbar/generic.nix
new file mode 100644
index 000000000000..f47ff1081bc8
--- /dev/null
+++ b/pkgs/development/libraries/libtorrent-rasterbar/generic.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconvOrNull, geoip
+# Version specific options
+, version, sha256
+, ... }:
+
+stdenv.mkDerivation rec {
+ name = "libtorrent-rasterbar-${version}";
+
+ src = fetchurl {
+ url = "mirror://sourceforge/libtorrent/${name}.tar.gz";
+ inherit sha256;
+ };
+
+ buildInputs = [ boost pkgconfig openssl zlib python libiconvOrNull geoip ];
+
+ configureFlags = [
+ "--enable-python-binding"
+ "--with-libgeoip=system"
+ "--with-libiconv=yes"
+ "--with-boost=${boost.dev}"
+ "--with-boost-libdir=${boost.lib}/lib"
+ ] ++ stdenv.lib.optional (libiconvOrNull != null) "--with-libiconv=yes";
+
+ 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 ];
+ };
+}