1{ stdenv, fetchurl, cmake, extra-cmake-modules
2, karchive, kcrash, ki18n, kio, solid
3, boost, gmp, qca-qt5, libgcrypt
4}:
5
6stdenv.mkDerivation rec {
7 name = "libktorrent-2.0.1";
8
9 src = fetchurl {
10 url = http://download.kde.org/stable/ktorrent/5.0/libktorrent-2.0.1.tar.xz;
11 sha256 = "0hiz4wm8jkymp24r6f1g8svj3pw9qspbjajf512m3j8s3bhrw3f7";
12 };
13
14 outputs = [ "out" "dev" ];
15
16 nativeBuildInputs = [ cmake extra-cmake-modules ];
17 buildInputs = [ karchive kcrash ki18n kio solid qca-qt5 libgcrypt ];
18
19 propagatedBuildInputs = [ gmp boost ];
20
21 enableParallelBuilding = true;
22
23 meta = {
24 description = "A BitTorrent library used by KTorrent";
25 homepage = https://www.kde.org/applications/internet/ktorrent/;
26 maintainers = [ stdenv.lib.maintainers.eelco ];
27 platforms = stdenv.lib.platforms.linux;
28 };
29}