lol
1{ stdenv, fetchFromGitHub, cmake, makeWrapper, pkgconfig, vala, gtk3, libgee
2, poppler, libpthreadstubs, gstreamer, gst-plugins-base, librsvg, pcre, gobjectIntrospection }:
3
4stdenv.mkDerivation rec {
5 name = "${product}-${version}";
6 product = "pdfpc";
7 version = "4.1.2";
8
9 src = fetchFromGitHub {
10 repo = "pdfpc";
11 owner = "pdfpc";
12 rev = "v${version}";
13 sha256 = "01c2bswvxqk4biidpfj3hzf0kdk69i56ibk2wfi8v50qm105psli";
14 };
15
16 nativeBuildInputs = [
17 cmake pkgconfig vala
18 # For setup hook
19 gobjectIntrospection
20 ];
21 buildInputs = [ gstreamer gst-plugins-base gtk3 libgee poppler
22 libpthreadstubs makeWrapper librsvg pcre ];
23
24 cmakeFlags = stdenv.lib.optionalString stdenv.isDarwin "-DMOVIES=OFF";
25
26 postInstall = ''
27 wrapProgram $out/bin/pdfpc \
28 --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
29 '';
30
31 meta = with stdenv.lib; {
32 description = "A presenter console with multi-monitor support for PDF files";
33 homepage = https://pdfpc.github.io/;
34 license = licenses.gpl2Plus;
35 maintainers = with maintainers; [ pSub ];
36 platforms = platforms.unix;
37 };
38
39}