2022-06-30 01:26:04 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
2024-04-26 20:24:03 +00:00
|
|
|
, wrapGAppsHook3
|
2022-06-30 01:26:04 +00:00
|
|
|
, wrapQtAppsHook
|
|
|
|
, gst_all_1
|
|
|
|
, qtbase
|
2023-09-08 22:26:27 +00:00
|
|
|
, qtsvg
|
2022-06-30 01:26:04 +00:00
|
|
|
, 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
|
2022-09-05 23:28:49 +00:00
|
|
|
, useExternalRenderer ? false
|
2022-06-30 01:26:04 +00:00
|
|
|
}:
|
2021-05-10 06:27:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-07-06 17:21:56 +00:00
|
|
|
pname = "beamerpresenter";
|
2024-09-02 01:29:33 +00:00
|
|
|
version = "0.2.5";
|
2020-07-06 17:21:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stiglers-eponym";
|
|
|
|
repo = "BeamerPresenter";
|
2023-09-08 22:26:27 +00:00
|
|
|
rev = "v${version}";
|
2024-09-02 01:29:33 +00:00
|
|
|
hash = "sha256-ofS0KMsn0KG8squIvMPxSCgE/qNK+Kd47psNziLBBoo=";
|
2020-07-06 17:21:56 +00:00
|
|
|
};
|
|
|
|
|
2022-06-30 01:26:04 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2022-06-30 01:26:04 +00:00
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gst_all_1.gst-libav
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
zlib
|
|
|
|
qtbase
|
2023-09-08 22:26:27 +00:00
|
|
|
qtsvg
|
2022-06-30 01:26:04 +00:00
|
|
|
qtmultimedia
|
|
|
|
qttools
|
2023-03-16 19:29:14 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
2022-06-30 01:26:04 +00:00
|
|
|
qtwayland
|
|
|
|
] ++ lib.optionals useMupdf [
|
|
|
|
freetype
|
|
|
|
gumbo
|
|
|
|
jbig2dec
|
|
|
|
mupdf
|
|
|
|
openjpeg
|
|
|
|
] ++ lib.optionals usePoppler [
|
|
|
|
poppler
|
|
|
|
];
|
2020-07-06 17:21:56 +00:00
|
|
|
|
2022-04-02 14:49:00 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DGIT_VERSION=OFF"
|
2022-06-30 01:26:04 +00:00
|
|
|
"-DUSE_POPPLER=${if usePoppler then "ON" else "OFF"}"
|
|
|
|
"-DUSE_MUPDF=${if useMupdf then "ON" else "OFF"}"
|
2022-09-05 23:28:49 +00:00
|
|
|
"-DUSE_QTPDF=OFF"
|
2023-10-14 13:57:37 +00:00
|
|
|
"-DLINK_MUPDF_THIRD=OFF"
|
2022-09-05 23:28:49 +00:00
|
|
|
"-DUSE_EXTERNAL_RENDERER=${if useExternalRenderer then "ON" else "OFF"}"
|
2023-09-08 22:26:27 +00:00
|
|
|
"-DLINK_MUJS=OFF"
|
|
|
|
"-DLINK_GUMBO=ON"
|
2022-04-02 14:49:00 +00:00
|
|
|
"-DUSE_TRANSLATIONS=ON"
|
2022-06-30 01:26:04 +00:00
|
|
|
"-DQT_VERSION_MAJOR=${lib.versions.major qtbase.version}"
|
2022-04-02 14:49:00 +00:00
|
|
|
];
|
2020-07-06 17:21:56 +00:00
|
|
|
|
2022-06-30 01:26:04 +00:00
|
|
|
preFixup = ''
|
|
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-04-02 14:49:00 +00:00
|
|
|
description = "Modular multi screen pdf presentation viewer";
|
2020-07-06 17:21:56 +00:00
|
|
|
homepage = "https://github.com/stiglers-eponym/BeamerPresenter";
|
2024-03-19 12:26:06 +00:00
|
|
|
license = with licenses; [ agpl3Only gpl3Plus ];
|
2020-07-06 17:21:56 +00:00
|
|
|
platforms = platforms.all;
|
2022-06-30 01:26:04 +00:00
|
|
|
maintainers = with maintainers; [ pacien dotlambda ];
|
2023-12-11 20:45:13 +00:00
|
|
|
mainProgram = "beamerpresenter";
|
2020-07-06 17:21:56 +00:00
|
|
|
};
|
|
|
|
}
|