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
|
2014-03-15 20:22:03 +01:00
|
|
|
mp_ = "3.1";
|
|
|
|
version = "1.${mp_}";
|
2012-01-19 21:28:05 +01:00
|
|
|
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 {
|
2014-03-15 21:31:58 +01:00
|
|
|
url = "${meta.homepage}/downloads/${version4}/${name}.tar.bz2";
|
2014-03-15 20:22:03 +01:00
|
|
|
sha256 = "2fe11ccb4bf2028c3da11e52cde890f1b3a90560e548eac89a4f8e1558b09725";
|
2010-08-16 10:34:26 +02:00
|
|
|
};
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ cmake automoc4 gettext ];
|
2012-01-19 21:28:05 +01:00
|
|
|
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";
|
2014-03-15 21:31:58 +01:00
|
|
|
homepage = http://ktorrent.pwsp.net;
|
2011-08-26 15:49:23 +02:00
|
|
|
inherit (kdelibs.meta) platforms;
|
2010-08-16 10:34:26 +02:00
|
|
|
};
|
|
|
|
}
|