Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
libsForQt5,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qcomicbook";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stolowski";
|
|
repo = "QComicBook";
|
|
rev = version;
|
|
sha256 = "1b769lp6gfwds4jb2g7ymhdm9c06zg57zpyz3zpdb40w07zfsjzv";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
libsForQt5.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libsForQt5.qtbase
|
|
libsForQt5.qttools
|
|
libsForQt5.qtx11extras
|
|
libsForQt5.poppler
|
|
];
|
|
|
|
postInstall = ''
|
|
substituteInPlace $out/share/applications/*.desktop \
|
|
--replace "Exec=qcomicbook" "Exec=$out/bin/qcomicbook"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/stolowski/QComicBook";
|
|
description = "Comic book reader in Qt5";
|
|
mainProgram = "qcomicbook";
|
|
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 ];
|
|
};
|
|
}
|