3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libktorrent/default.nix

39 lines
926 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, extra-cmake-modules
, karchive, kcrash, ki18n, kio, solid
, boost, gmp, qca-qt5, libgcrypt
}:
2017-09-01 14:53:42 +01:00
let
mainVersion = "5.1.2";
2017-09-01 14:53:42 +01:00
in stdenv.mkDerivation rec {
pname = "libktorrent";
version = "2.1.1";
src = fetchurl {
url = "mirror://kde/stable/ktorrent/${mainVersion}/${pname}-${version}.tar.xz";
sha256 = "0051zh8bb4p9wmcfn5ql987brhsaiw9880xdck7b5dm1a05mri2w";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ cmake extra-cmake-modules ];
2017-09-01 14:53:42 +01:00
buildInputs = [ karchive kcrash ki18n kio solid qca-qt5 libgcrypt ];
propagatedBuildInputs = [ gmp boost ];
2017-09-01 14:53:42 +01:00
passthru = {
inherit mainVersion;
};
dontWrapQtApps = true;
meta = with lib; {
2016-11-21 20:54:15 +00:00
description = "A BitTorrent library used by KTorrent";
homepage = "https://www.kde.org/applications/internet/ktorrent/";
2017-09-01 14:53:42 +01:00
maintainers = with maintainers; [ eelco ];
platforms = platforms.linux;
};
}