about summary refs log tree commit diff
path: root/pkgs/tools/misc/peruse/default.nix
blob: ba99cdd8cdf96b077b0d145d5f37b041e6dfa1b5 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{ stdenv
, fetchurl
, lib
, extra-cmake-modules
, kdoctools
, wrapQtAppsHook
, baloo
, karchive
, kconfig
, kcrash
, kfilemetadata
, kinit
, kirigami2
, knewstuff
, okular
, plasma-framework
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "peruse";
  # while technically a beta, the latest release is from 2016 and doesn't build without a lot of
  # patching
  version = "1.80";

  src = fetchurl {
    url = "mirror://kde/stable/peruse/peruse-${finalAttrs.version}.tar.xz";
    hash = "sha256-xnSVnKF20jbxVoFW41A22NZWVZUry/F7G+Ts5NK6M1E=";
  };

  nativeBuildInputs = [
    extra-cmake-modules
    kdoctools
    wrapQtAppsHook
  ];

  propagatedBuildInputs = [
    baloo
    karchive
    kconfig
    kcrash
    kfilemetadata
    kinit
    kirigami2
    knewstuff
    okular
    plasma-framework
  ];

  # the build is otherwise crazy loud
  cmakeFlags = [ "-Wno-dev" ];

  pathsToLink = [ "/etc/xdg/peruse.knsrc" ];

  meta = with lib; {
    description = "Comic book reader";
    homepage = "https://peruse.kde.org";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ peterhoeg ];
    mainProgram = "peruse";
    inherit (kirigami2.meta) platforms;
  };
})