summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p/ktorrent/5.nix
blob: 7e47838c4f98c33866f518b01dfdcc6825a104a9 (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
37
38
39
40
41
{ stdenv, fetchurl, cmake
, ecm, qtbase, qtscript
, ki18n, kio, knotifications, knotifyconfig, kdoctools, kross, kcmutils, kdelibs4support
, libktorrent, boost, taglib
}:

stdenv.mkDerivation rec {
  name = pname + "-" + version;

  pname = "ktorrent";
  version = "5.0.1";

  src = fetchurl {
    url = http://download.kde.org/stable/ktorrent/5.0/ktorrent-5.0.1.tar.xz;
    sha256 = "1rbr932djmn1la6vs2sy1zdf39fmla8vwzfn76h7csncbp5fw3yh";
  };

  patches =
    [ (fetchurl {
        url = https://cgit.kde.org/ktorrent.git/patch/?id=f48acc22f0105ce6bac63294d248873ae231c6cc;
        sha256 = "0jm4y35w2ypbjzf165rnjr224nq4w651ydnpd9zdn3inxh8r4s0v";
      })
    ];

  nativeBuildInputs = [ kdoctools ecm ];

  buildInputs =
    [ cmake qtbase qtscript
      ki18n kio knotifications knotifyconfig kross kcmutils kdelibs4support
      libktorrent taglib
    ];

  enableParallelBuilding = true;

  meta = {
    description = "KDE integrated BtTorrent client";
    homepage = https://www.kde.org/applications/internet/ktorrent/;
    maintainers = [ stdenv.lib.maintainers.eelco ];
    platforms = stdenv.lib.platforms.linux;
  };
}