2011-08-06 16:28:15 +02:00
|
|
|
{ stdenv, fetchurl, kdelibs, cmake, gmp, qca2, boost, gettext, qt4, automoc4
|
|
|
|
, phonon, libgcrypt }:
|
2010-08-16 10:34:26 +02:00
|
|
|
|
2012-01-19 21:28:05 +01:00
|
|
|
let
|
|
|
|
mp_ = "1.3";
|
|
|
|
version = "1.${mp_}";
|
|
|
|
version4 = "4.${mp_}";
|
|
|
|
in
|
2010-08-16 10:34:26 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2010-09-13 16:22:56 +02:00
|
|
|
name = pname + "-" + version;
|
|
|
|
pname = "libktorrent";
|
2010-08-16 10:34:26 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-01-19 21:28:05 +01:00
|
|
|
url = "http://ktorrent.org/downloads/${version4}/${name}.tar.bz2";
|
|
|
|
sha256 = "0mvvx6mdfy0pyhk6lwwmmbd3pd2ai6n2rf5kdjqhpkm9wbrck85n";
|
2010-08-16 10:34:26 +02:00
|
|
|
};
|
|
|
|
|
2012-01-19 21:28:05 +01:00
|
|
|
buildNativeInputs = [ cmake automoc4 gettext ];
|
|
|
|
buildInputs = [ kdelibs phonon gmp qca2 boost libgcrypt ];
|
2011-08-06 16:28:15 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2010-08-16 10:34:26 +02:00
|
|
|
|
|
|
|
meta = {
|
2011-08-06 16:28:15 +02:00
|
|
|
description = "A BiTtorrent library used by KTorrent";
|
2010-08-16 10:34:26 +02:00
|
|
|
homepage = http://ktorrent.org;
|
2011-08-26 15:49:23 +02:00
|
|
|
inherit (kdelibs.meta) platforms;
|
2010-08-16 10:34:26 +02:00
|
|
|
};
|
|
|
|
}
|