Last active
July 25, 2018 22:47
-
-
Save erikarvstedt/d3da4c404278b9f50e0485e891bf5e46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchFromGitHub, pkgconfig, cmake, qt5, poppler_qt5 }: | |
stdenv.mkDerivation rec { | |
name = "qcomicbook-${version}"; | |
version = "0.9.1"; | |
src = fetchFromGitHub { | |
owner = "stolowski"; | |
repo = "QComicBook"; | |
rev = version; | |
sha256 = "1b769lp6gfwds4jb2g7ymhdm9c06zg57zpyz3zpdb40w07zfsjzv"; | |
}; | |
nativeBuildInputs = [ cmake pkgconfig ]; | |
buildInputs = | |
(with qt5; [ qtbase qttools qtx11extras ]) | |
++ [ poppler_qt5 ]; | |
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 ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment