2021-01-25 08:26:54 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, pkg-config, cmake, qtbase, qttools, qtx11extras, poppler }:
|
2018-09-01 21:39:38 +00:00
|
|
|
|
2020-04-07 20:29:03 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "qcomicbook";
|
2018-09-01 21:39:38 +00:00
|
|
|
version = "0.9.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stolowski";
|
|
|
|
repo = "QComicBook";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1b769lp6gfwds4jb2g7ymhdm9c06zg57zpyz3zpdb40w07zfsjzv";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
cmake pkg-config
|
2018-09-01 21:39:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-09-13 05:22:39 +00:00
|
|
|
qtbase qttools qtx11extras poppler
|
2018-09-01 21:39:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace $out/share/applications/*.desktop \
|
|
|
|
--replace "Exec=qcomicbook" "Exec=$out/bin/qcomicbook"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/stolowski/QComicBook";
|
2018-09-01 21:39:38 +00:00
|
|
|
description = "Comic book reader in Qt5";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "qcomicbook";
|
2018-09-01 21:39:38 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|