2010-08-21 21:27:31 +02:00
|
|
|
{ stdenv, fetchurl, kdelibs, cmake, gmp, qca2, boost, gettext, qt4, automoc4,
|
2010-09-13 19:34:14 +02:00
|
|
|
perl, phonon }:
|
2010-08-16 10:34:26 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-09-13 16:22:56 +02:00
|
|
|
name = pname + "-" + version;
|
|
|
|
pname = "libktorrent";
|
|
|
|
version = "1.0.3";
|
2010-08-16 10:34:26 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-09-13 16:22:56 +02:00
|
|
|
url = "${meta.homepage}/downloads/4${builtins.substring 1
|
|
|
|
(builtins.stringLength version) version}/${name}.tar.bz2";
|
|
|
|
sha256 = "1yfayzbmi7im0pf4g7awn8lqianpr55xwbsldz7lyj9lc1a3xcgs";
|
2010-08-16 10:34:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: xfs.h
|
2010-09-13 19:34:14 +02:00
|
|
|
propagatedBuildInputs = [ kdelibs gmp boost qt4 phonon ];
|
2010-09-13 16:22:56 +02:00
|
|
|
buildInputs = [ cmake automoc4 qca2 gettext perl ];
|
2010-08-16 10:34:26 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A bittorrent library used in ktorrent";
|
|
|
|
homepage = http://ktorrent.org;
|
|
|
|
};
|
|
|
|
}
|