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
|
2019-09-04 06:07:12 +01:00
|
|
|
mainVersion = "5.1.2";
|
2017-09-01 14:53:42 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-09-04 06:07:12 +01:00
|
|
|
pname = "libktorrent";
|
|
|
|
version = "2.1.1";
|
2010-08-16 09:34:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-09-04 06:07:12 +01:00
|
|
|
url = "mirror://kde/stable/ktorrent/${mainVersion}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0051zh8bb4p9wmcfn5ql987brhsaiw9880xdck7b5dm1a05mri2w";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.kde.org/applications/internet/ktorrent/";
|
2017-09-01 14:53:42 +01:00
|
|
|
maintainers = with maintainers; [ eelco ];
|
|
|
|
platforms = platforms.linux;
|
2010-08-16 09:34:26 +01:00
|
|
|
};
|
|
|
|
}
|