2017-02-26 12:49:15 +00:00
|
|
|
{ stdenv, fetchurl, cmake, extra-cmake-modules
|
2017-02-18 20:15:30 +00:00
|
|
|
, karchive, kcrash, ki18n, kio, solid
|
|
|
|
, boost, gmp, qca-qt5, libgcrypt
|
|
|
|
}:
|
2010-08-16 09:34:26 +01:00
|
|
|
|
2017-09-01 14:53:42 +01:00
|
|
|
let
|
|
|
|
mainVersion = "5.1";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "libktorrent-2.1";
|
2010-08-16 09:34:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-09-01 14:53:42 +01:00
|
|
|
url = "mirror://kde/stable/ktorrent/${mainVersion}/${name}.tar.xz";
|
|
|
|
sha256 = "0vz2dwc4xd80q56g6r5bx5wqdl9fxcibxmw2irahqhbkxk7drvry";
|
2010-08-16 09:34:26 +01:00
|
|
|
};
|
|
|
|
|
2017-02-18 20:15:30 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-02-26 12:49:15 +00:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules ];
|
2017-09-01 14:53:42 +01:00
|
|
|
|
2017-02-18 20:15:30 +00:00
|
|
|
buildInputs = [ karchive kcrash ki18n kio solid qca-qt5 libgcrypt ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ gmp boost ];
|
2011-08-06 15:28:15 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2010-08-16 09:34:26 +01:00
|
|
|
|
2017-09-01 14:53:42 +01:00
|
|
|
passthru = {
|
|
|
|
inherit mainVersion;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-11-21 20:54:15 +00:00
|
|
|
description = "A BitTorrent library used by KTorrent";
|
2017-09-01 14:53:42 +01:00
|
|
|
homepage = https://www.kde.org/applications/internet/ktorrent/;
|
|
|
|
maintainers = with maintainers; [ eelco ];
|
|
|
|
platforms = platforms.linux;
|
2010-08-16 09:34:26 +01:00
|
|
|
};
|
|
|
|
}
|