about summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p/transmission
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2013-03-17 22:27:55 +0100
committerLluís Batlle i Rossell <viric@viric.name>2013-03-17 22:27:55 +0100
commit51528e61d9d8ebdc3f5f577409f92c053a9032a3 (patch)
treedd39e7828bfb4e82c22b5fa8a8710b06d1620c1b /pkgs/applications/networking/p2p/transmission
parent8c5eaf18407a7da82bd4323067b846e2c2e8499f (diff)
downloadnixlib-51528e61d9d8ebdc3f5f577409f92c053a9032a3.tar
nixlib-51528e61d9d8ebdc3f5f577409f92c053a9032a3.tar.gz
nixlib-51528e61d9d8ebdc3f5f577409f92c053a9032a3.tar.bz2
nixlib-51528e61d9d8ebdc3f5f577409f92c053a9032a3.tar.lz
nixlib-51528e61d9d8ebdc3f5f577409f92c053a9032a3.tar.xz
nixlib-51528e61d9d8ebdc3f5f577409f92c053a9032a3.tar.zst
nixlib-51528e61d9d8ebdc3f5f577409f92c053a9032a3.zip
transmission: update to 2.77, but leave the old 2.60 for its gtk client
The gtk client in 2.61 and above require a gtk3 we don't have in nixpkgs yet.
Diffstat (limited to 'pkgs/applications/networking/p2p/transmission')
-rw-r--r--pkgs/applications/networking/p2p/transmission/2.60.nix41
-rw-r--r--pkgs/applications/networking/p2p/transmission/default.nix13
2 files changed, 50 insertions, 4 deletions
diff --git a/pkgs/applications/networking/p2p/transmission/2.60.nix b/pkgs/applications/networking/p2p/transmission/2.60.nix
new file mode 100644
index 000000000000..c59fddf6364b
--- /dev/null
+++ b/pkgs/applications/networking/p2p/transmission/2.60.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchurl, pkgconfig, openssl, curl, intltool, libevent,
+  file, inotifyTools, gtk ? null }:
+
+stdenv.mkDerivation rec {
+  name = "transmission-2.60"; # transmission >= 2.61 requires gtk3
+
+  src = fetchurl {
+    url = "http://download.transmissionbt.com/files/${name}.tar.xz";
+    sha256 = "1ramdliyy8j7qqpkxg643lda11ynxwfhq6qcs31fr3h9x72l0rg4";
+  };
+
+  buildInputs = [ pkgconfig openssl curl intltool libevent
+                  file inotifyTools gtk ];
+
+  preConfigure = ''
+    sed -i -e 's|/usr/bin/file|${file}/bin/file|g' configure
+  '';
+
+  postInstall = ''
+    rm -f $out/share/icons/hicolor/icon-theme.cache
+  '';
+
+  meta = {
+    description = "A fast, easy and free BitTorrent client";
+    longDescription = ''
+      Transmission is a BitTorrent client which features a simple interface
+      on top of a cross-platform back-end.
+      Feature spotlight:
+        * Uses fewer resources than other clients
+        * Native Mac, GTK+ and Qt GUI clients
+        * Daemon ideal for servers, embedded systems, and headless use
+        * All these can be remote controlled by Web and Terminal clients
+        * Bluetack (PeerGuardian) blocklists with automatic updates
+        * Full encryption, DHT, and PEX support
+    '';
+    homepage = http://www.transmissionbt.com/;
+    license = [ "GPLv2" ];
+    maintainers = [ stdenv.lib.maintainers.astsmtl ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}
diff --git a/pkgs/applications/networking/p2p/transmission/default.nix b/pkgs/applications/networking/p2p/transmission/default.nix
index c59fddf6364b..14ec49c4e8da 100644
--- a/pkgs/applications/networking/p2p/transmission/default.nix
+++ b/pkgs/applications/networking/p2p/transmission/default.nix
@@ -1,12 +1,15 @@
-{ stdenv, fetchurl, pkgconfig, openssl, curl, intltool, libevent,
-  file, inotifyTools, gtk ? null }:
+{ stdenv, fetchurl, pkgconfig, openssl, curl, intltool, libevent
+, file, inotifyTools
+, enableGtk ? false, gtk ? null }:
+
+assert enableGtk -> gtk != null;
 
 stdenv.mkDerivation rec {
-  name = "transmission-2.60"; # transmission >= 2.61 requires gtk3
+  name = "transmission-2.77"; # transmission >= 2.61 requires gtk3
 
   src = fetchurl {
     url = "http://download.transmissionbt.com/files/${name}.tar.xz";
-    sha256 = "1ramdliyy8j7qqpkxg643lda11ynxwfhq6qcs31fr3h9x72l0rg4";
+    sha256 = "1phzhj4wds6r2ziclva1b5l6l9xjsx5ji7s3m4xia44aq4znbcam";
   };
 
   buildInputs = [ pkgconfig openssl curl intltool libevent
@@ -16,6 +19,8 @@ stdenv.mkDerivation rec {
     sed -i -e 's|/usr/bin/file|${file}/bin/file|g' configure
   '';
 
+  configureFlags = stdenv.lib.optional enableGtk "--with-gtk";
+
   postInstall = ''
     rm -f $out/share/icons/hicolor/icon-theme.cache
   '';