nixpkgs/pkgs/development/libraries/libktorrent/default.nix

29 lines
732 B
Nix
Raw Normal View History

{ stdenv, fetchurl, kdelibs, cmake, gmp, qca2, boost, gettext, qt4, automoc4
, phonon, libgcrypt }:
let
2014-03-15 20:22:03 +01:00
mp_ = "3.1";
version = "1.${mp_}";
version4 = "4.${mp_}";
in
stdenv.mkDerivation rec {
name = pname + "-" + version;
pname = "libktorrent";
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";
};
nativeBuildInputs = [ cmake automoc4 gettext ];
buildInputs = [ kdelibs phonon gmp qca2 boost libgcrypt ];
enableParallelBuilding = true;
meta = {
description = "A BiTtorrent library used by KTorrent";
2014-03-15 21:31:58 +01:00
homepage = http://ktorrent.pwsp.net;
inherit (kdelibs.meta) platforms;
};
}