nixpkgs-suyu/pkgs/applications/graphics/qcomicbook/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

43 lines
1.2 KiB
Nix

{ mkDerivation, lib, stdenv, fetchFromGitHub, pkg-config, 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 pkg-config
];
buildInputs = [
qtbase qttools qtx11extras 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";
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 ];
};
}