2013-10-04 20:31:02 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, file, makeWrapper
|
2015-09-07 21:28:33 +02:00
|
|
|
, openssl, curl, libevent, inotify-tools, systemd, zlib
|
2013-10-04 20:31:02 +02:00
|
|
|
, enableGTK3 ? false, gtk3
|
|
|
|
}:
|
2013-03-17 22:27:55 +01:00
|
|
|
|
2013-10-04 20:31:02 +02:00
|
|
|
let
|
2016-03-08 15:40:17 +01:00
|
|
|
version = "2.92";
|
2013-10-04 20:31:02 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
with { inherit (stdenv.lib) optional optionals optionalString; };
|
2010-05-20 15:39:16 +02:00
|
|
|
|
2010-03-28 01:06:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2013-10-04 20:31:02 +02:00
|
|
|
name = "transmission-" + optionalString enableGTK3 "gtk-" + version;
|
2012-06-18 17:18:45 +02:00
|
|
|
|
2010-03-28 01:06:30 +01:00
|
|
|
src = fetchurl {
|
2015-02-02 22:05:51 +01:00
|
|
|
url = "https://transmission.cachefly.net/transmission-${version}.tar.xz";
|
2016-03-08 15:40:17 +01:00
|
|
|
sha256 = "0pykmhi7pdmzq47glbj8i2im6iarp4wnj4l1pyvsrnba61f0939s";
|
2010-03-28 01:06:30 +01:00
|
|
|
};
|
2012-06-18 17:18:45 +02:00
|
|
|
|
2015-09-07 21:28:33 +02:00
|
|
|
buildInputs = [ pkgconfig intltool file openssl curl libevent inotify-tools zlib ]
|
2014-05-22 11:34:47 +02:00
|
|
|
++ optionals enableGTK3 [ gtk3 makeWrapper ]
|
|
|
|
++ optional stdenv.isLinux systemd;
|
2012-06-18 17:18:45 +02:00
|
|
|
|
2013-02-27 13:05:21 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i -e 's|/usr/bin/file|${file}/bin/file|g' configure
|
|
|
|
'';
|
2011-06-13 16:15:15 +02:00
|
|
|
|
2013-10-04 20:31:02 +02:00
|
|
|
configureFlags = [ "--with-systemd-daemon" ]
|
2016-03-13 07:08:01 +01:00
|
|
|
++ [ "--enable-cli" ]
|
2013-10-04 20:31:02 +02:00
|
|
|
++ optional enableGTK3 "--with-gtk";
|
2013-03-17 22:27:55 +01:00
|
|
|
|
2014-04-17 10:11:15 +02:00
|
|
|
preFixup = optionalString enableGTK3 /* gsettings schemas for file dialogues */ ''
|
2013-10-04 20:31:02 +02:00
|
|
|
rm "$out/share/icons/hicolor/icon-theme.cache"
|
|
|
|
wrapProgram "$out/bin/transmission-gtk" \
|
2014-04-17 10:11:15 +02:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
2011-06-13 16:15:15 +02:00
|
|
|
'';
|
2012-06-18 17:18:45 +02:00
|
|
|
|
2013-10-04 20:31:02 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-05-20 15:39:16 +02:00
|
|
|
description = "A fast, easy and free BitTorrent client";
|
2010-03-28 01:06:30 +01:00
|
|
|
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/;
|
2013-10-04 20:31:02 +02:00
|
|
|
license = licenses.gpl2; # parts are under MIT
|
2014-03-14 21:18:16 +01:00
|
|
|
maintainers = with maintainers; [ astsmtl vcunat wizeman ];
|
2013-10-04 20:31:02 +02:00
|
|
|
platforms = platforms.linux;
|
2010-03-28 01:06:30 +01:00
|
|
|
};
|
|
|
|
}
|
2013-10-04 20:31:02 +02:00
|
|
|
|