Files
quantenzitrone d118fe0cf8 libpthreadstubs: rename references and deprecate alias
this shouldn't create any rebuilds
2026-02-04 22:59:01 +01:00

86 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
vala,
gtk3,
libgee,
poppler,
libpthread-stubs,
gstreamer,
gst-plugins-base,
gst-plugins-good,
gst-libav,
gobject-introspection,
wrapGAppsHook3,
qrencode,
webkitgtk_4_1,
discount,
json-glib,
nix-update-script,
libsoup_3,
librsvg,
}:
stdenv.mkDerivation rec {
pname = "pdfpc";
version = "4.7.0";
src = fetchFromGitHub {
repo = "pdfpc";
owner = "pdfpc";
rev = "v${version}";
hash = "sha256-fPhCrn1ELC03/II+e021BUNJr1OKCBIcFCM7z+2Oo+s=";
};
nativeBuildInputs = [
cmake
pkg-config
vala
# For setup hook
gobject-introspection
wrapGAppsHook3
];
cmakeFlags = lib.optional stdenv.hostPlatform.isDarwin (lib.cmakeBool "MDVIEW" false);
buildInputs =
let
platformBuildInputs =
if stdenv.hostPlatform.isDarwin then
[ librsvg ]
else
[
libpthread-stubs
webkitgtk_4_1
];
in
[
(gst-plugins-good.override { gtkSupport = true; })
discount
gst-libav
gst-plugins-base
gstreamer
gtk3
json-glib
libgee
libsoup_3
poppler
qrencode
]
++ platformBuildInputs;
passthru.updateScript = nix-update-script { };
meta = {
description = "Presenter console with multi-monitor support for PDF files";
mainProgram = "pdfpc";
homepage = "https://pdfpc.github.io/";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ pSub ];
platforms = lib.platforms.unix;
};
}