about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libktorrent/default.nix
blob: 610efa7ed4f4cabca66ebc7afd098a83ddc45152 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib, stdenv, fetchurl, cmake, extra-cmake-modules
, karchive, kcrash, ki18n, kio, solid
, boost, gmp, qca-qt5, libgcrypt
}:

let
  mainVersion = "5.1.2";

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 ];

  buildInputs = [ karchive kcrash ki18n kio solid qca-qt5 libgcrypt ];

  propagatedBuildInputs = [ gmp boost ];

  passthru = {
    inherit mainVersion;
  };

  meta = with lib; {
    description = "A BitTorrent library used by KTorrent";
    homepage    = "https://www.kde.org/applications/internet/ktorrent/";
    maintainers = with maintainers; [ eelco ];
    platforms   = platforms.linux;
  };
}