summary refs log tree commit diff
path: root/pkgs/applications/graphics/qcomicbook/default.nix
blob: f9dc494b4b35a1ddf9c8bdf05627281c9e8b059f (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
{ mkDerivation, stdenv, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools, qtx11extras, poppler }:

mkDerivation rec {
  pname = "qcomicbook";
  version = "0.9.1";

  src = fetchFromGitHub {
    owner = "stolowski";
    repo = "QComicBook";
    rev = version;
    sha256 = "1b769lp6gfwds4jb2g7ymhdm9c06zg57zpyz3zpdb40w07zfsjzv";
  };

  nativeBuildInputs = [
    cmake pkgconfig
  ];

  buildInputs = [
    qtbase qttools qtx11extras poppler
  ];

  postInstall = ''
    substituteInPlace $out/share/applications/*.desktop \
      --replace "Exec=qcomicbook" "Exec=$out/bin/qcomicbook"
  '';

  meta = with stdenv.lib; {
    homepage = "https://github.com/stolowski/QComicBook";
    description = "Comic book reader in Qt5";
    license = licenses.gpl2;

    longDescription = ''
      QComicBook is a viewer for PDF files and comic book archives containing
      jpeg/png/xpm/gif/bmp images, which aims at convenience and simplicity.
      Features include: automatic unpacking of archive files, full-screen mode, continuous
      scrolling mode, double-pages viewing, manga mode, thumbnails view, page scaling,
      mouse or keyboard navigation etc.
    '';

    platforms = platforms.linux;
    maintainers = with maintainers; [ greydot ];
  };
}