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