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