2018-06-13 21:16:51 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, cmake
|
2017-02-26 13:49:15 +01:00
|
|
|
, extra-cmake-modules, qtbase, qtscript
|
2017-09-05 12:26:52 +02:00
|
|
|
, karchive, kcrash, kdnssd, ki18n, kio, knotifications, knotifyconfig
|
|
|
|
, kdoctools, kross, kcmutils, kwindowsystem
|
2018-07-21 02:44:44 +02:00
|
|
|
, libktorrent, taglib, libgcrypt, kplotting
|
2017-02-18 20:24:52 +01:00
|
|
|
}:
|
2010-09-13 16:23:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ktorrent";
|
2017-09-05 12:26:52 +02:00
|
|
|
version = "${libktorrent.mainVersion}.0";
|
2010-09-13 16:23:02 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://kde/stable/ktorrent/${libktorrent.mainVersion}/${pname}-${version}.tar.xz";
|
2017-09-05 12:26:52 +02:00
|
|
|
sha256 = "18w6qh09k84qpzaxxb76a4g59k4mx5wk897vqp1wwv80g0pqhmrw";
|
2010-09-13 16:23:02 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 12:26:52 +02:00
|
|
|
nativeBuildInputs = [ cmake kdoctools extra-cmake-modules ];
|
2010-09-13 16:23:02 +02:00
|
|
|
|
2017-09-05 12:26:52 +02:00
|
|
|
buildInputs = [
|
|
|
|
qtbase qtscript
|
|
|
|
karchive kcrash kdnssd ki18n kio knotifications knotifyconfig kross kcmutils kwindowsystem
|
|
|
|
libktorrent taglib libgcrypt kplotting
|
|
|
|
];
|
2011-08-06 16:28:15 +02:00
|
|
|
|
2018-06-13 21:16:51 +02:00
|
|
|
patches = [
|
|
|
|
# Fix build with CMake 3.11
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://cgit.kde.org/ktorrent.git/patch/?id=672c5076de7e3a526d9bdbb484a69e9386bc49f8";
|
|
|
|
sha256 = "1cn4rnbhadrsxqx50fawpd747azskavbjraygr6s11rh1wbfrxid";
|
|
|
|
})
|
2018-06-15 17:43:08 +02:00
|
|
|
|
|
|
|
# Fix build against Qt 5.11
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://cgit.kde.org/ktorrent.git/patch/?id=7876857d204188016a135a25938d9f8530fba4e8";
|
|
|
|
sha256 = "1wnmfzkhf6y7fd0z2djwphs6i9lsg7fcrj8fqmbyi0j57dvl9gxl";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://cgit.kde.org/ktorrent.git/patch/?id=36d112e56e56541d439326a267eb906da8b3ee60";
|
|
|
|
sha256 = "1d41pqniljhwqs6awa644s6ks0zwm9sr0hpfygc63wyxnpcrsw2y";
|
|
|
|
})
|
2018-06-13 21:16:51 +02:00
|
|
|
];
|
|
|
|
|
2011-08-06 16:28:15 +02:00
|
|
|
enableParallelBuilding = true;
|
2010-09-13 16:23:02 +02:00
|
|
|
|
2017-09-05 12:26:52 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-09-13 16:23:02 +02:00
|
|
|
description = "KDE integrated BtTorrent client";
|
2017-09-05 12:26:52 +02:00
|
|
|
homepage = https://www.kde.org/applications/internet/ktorrent/;
|
2017-09-07 04:41:51 +02:00
|
|
|
license = licenses.gpl2;
|
2017-09-05 12:26:52 +02:00
|
|
|
maintainers = with maintainers; [ eelco ];
|
|
|
|
platforms = platforms.linux;
|
2010-09-13 16:23:02 +02:00
|
|
|
};
|
|
|
|
}
|