3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/beamerpresenter/default.nix
Valentin Bruch 64eafc25d6 Update source to fix #194116
Before this commit, paths to GUI config and manual were written to the config file. When running gc after an update, these paths do not exist anymore.
That changes with this commit: Paths are commented out in config file. Nonexisting paths are removed from config file when running beamerpresenter.

Other changes in the code compared to v0.2.3: compatibility with Qt 6.4
2022-10-03 09:44:27 -05:00

92 lines
1.9 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, wrapGAppsHook
, wrapQtAppsHook
, gst_all_1
, qtbase
, qtmultimedia
, qttools
, qtwayland
, zlib
# only required when using poppler
, poppler
# only required when using mupdf
, freetype
, gumbo
, jbig2dec
, mupdf
, openjpeg
# choose renderer: mupdf or poppler or both (not recommended)
, usePoppler ? false
, useMupdf ? true
, useExternalRenderer ? false
}:
stdenv.mkDerivation rec {
pname = "beamerpresenter";
version = "0.2.3-1";
src = fetchFromGitHub {
owner = "stiglers-eponym";
repo = "BeamerPresenter";
rev = "dd41a00b3c6c8b881fa62945165c965634df66f0";
sha256 = "11yj1zl8hdnqbynkbyzg8kwyx1jl8c87x8f8qyllpk0s6cg304d0";
};
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook
wrapQtAppsHook
];
dontWrapGApps = true;
buildInputs = [
gst_all_1.gst-libav
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
zlib
qtbase
qtmultimedia
qttools
qtwayland
] ++ lib.optionals useMupdf [
freetype
gumbo
jbig2dec
mupdf
openjpeg
] ++ lib.optionals usePoppler [
poppler
];
cmakeFlags = [
"-DGIT_VERSION=OFF"
"-DUSE_POPPLER=${if usePoppler then "ON" else "OFF"}"
"-DUSE_MUPDF=${if useMupdf then "ON" else "OFF"}"
"-DUSE_QTPDF=OFF"
"-DUSE_MUPDF_THIRD=ON"
"-DUSE_EXTERNAL_RENDERER=${if useExternalRenderer then "ON" else "OFF"}"
"-DUSE_MUJS=OFF"
"-DUSE_GUMBO=ON"
"-DUSE_TRANSLATIONS=ON"
"-DQT_VERSION_MAJOR=${lib.versions.major qtbase.version}"
];
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = with lib; {
description = "Modular multi screen pdf presentation viewer";
homepage = "https://github.com/stiglers-eponym/BeamerPresenter";
license = with licenses; [ agpl3 gpl3Plus ];
platforms = platforms.all;
maintainers = with maintainers; [ pacien dotlambda ];
};
}