46 lines
832 B
Nix
46 lines
832 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
kdePackages,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "qdocumentview";
|
|
version = "0.3.0.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "extraqt";
|
|
repo = "qdocumentview";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-z5Z43fo6oemGBn5Gfmx5ndeOva+qSH6mwkUWClylChA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
kdePackages.qtbase
|
|
kdePackages.poppler
|
|
];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
meta = {
|
|
description = "Widget to render multi-page documents";
|
|
mainProgram = "qdocumentview";
|
|
homepage = "https://gitlab.com/extraqt/qdocumentview";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|