@@ -0,0 +1,43 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools, qtx11extras, poppler_qt5 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "qcomicbook-${version}";
5+ version = "0.9.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "stolowski";
9+ repo = "QComicBook";
10+ rev = version;
11+ sha256 = "1b769lp6gfwds4jb2g7ymhdm9c06zg57zpyz3zpdb40w07zfsjzv";
12+ };
13+
14+ nativeBuildInputs = [
15+ cmake pkgconfig
16+ ];
17+
18+ buildInputs = [
19+ qtbase qttools qtx11extras poppler_qt5
20+ ];
21+
22+ postInstall = ''
23+ substituteInPlace $out/share/applications/*.desktop \
24+ --replace "Exec=qcomicbook" "Exec=$out/bin/qcomicbook"
25+ '';
26+
27+ meta = with stdenv.lib; {
28+ homepage = https://github.com/stolowski/QComicBook;
29+ description = "Comic book reader in Qt5";
30+ license = licenses.gpl2;
31+
32+ longDescription = ''
33+ QComicBook is a viewer for PDF files and comic book archives containing
34+ jpeg/png/xpm/gif/bmp images, which aims at convenience and simplicity.
35+ Features include: automatic unpacking of archive files, full-screen mode, continuous
36+ scrolling mode, double-pages viewing, manga mode, thumbnails view, page scaling,
37+ mouse or keyboard navigation etc.
38+ '';
39+
40+ platforms = platforms.linux;
41+ maintainers = with maintainers; [ greydot ];
42+ };
43+}