nixpkgs/pkgs/applications/networking/p2p/ktorrent/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2018-06-13 19:16:51 +00:00
{ stdenv, fetchurl, fetchpatch, cmake
, extra-cmake-modules, qtbase, qtscript
2017-09-05 10:26:52 +00:00
, karchive, kcrash, kdnssd, ki18n, kio, knotifications, knotifyconfig
, kdoctools, kross, kcmutils, kwindowsystem
2017-07-03 07:44:37 +00:00
, libktorrent, boost, taglib, libgcrypt, kplotting
}:
stdenv.mkDerivation rec {
2017-09-05 10:26:52 +00:00
name = "ktorrent-${version}";
version = "${libktorrent.mainVersion}.0";
src = fetchurl {
2017-09-05 10:26:52 +00:00
url = "mirror://kde/stable/ktorrent/${libktorrent.mainVersion}/${name}.tar.xz";
sha256 = "18w6qh09k84qpzaxxb76a4g59k4mx5wk897vqp1wwv80g0pqhmrw";
};
2017-09-05 10:26:52 +00:00
nativeBuildInputs = [ cmake kdoctools extra-cmake-modules ];
2017-09-05 10:26:52 +00:00
buildInputs = [
qtbase qtscript
karchive kcrash kdnssd ki18n kio knotifications knotifyconfig kross kcmutils kwindowsystem
libktorrent taglib libgcrypt kplotting
];
2018-06-13 19:16:51 +00:00
patches = [
# Fix build with CMake 3.11
(fetchpatch {
url = "https://cgit.kde.org/ktorrent.git/patch/?id=672c5076de7e3a526d9bdbb484a69e9386bc49f8";
sha256 = "1cn4rnbhadrsxqx50fawpd747azskavbjraygr6s11rh1wbfrxid";
})
];
enableParallelBuilding = true;
2017-09-05 10:26:52 +00:00
meta = with stdenv.lib; {
description = "KDE integrated BtTorrent client";
2017-09-05 10:26:52 +00:00
homepage = https://www.kde.org/applications/internet/ktorrent/;
2017-09-07 02:41:51 +00:00
license = licenses.gpl2;
2017-09-05 10:26:52 +00:00
maintainers = with maintainers; [ eelco ];
platforms = platforms.linux;
};
}