2021-02-24 18:30:23 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, vala, gtk3, libgee
|
2022-12-28 21:21:41 +00:00
|
|
|
, poppler, libpthreadstubs, gstreamer, gst-plugins-base, gst-plugins-good, gst-libav, gobject-introspection, wrapGAppsHook
|
2023-05-24 13:37:59 +00:00
|
|
|
, qrencode, webkitgtk, discount, json-glib, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "pdfpc";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "4.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-03-30 09:31:56 +00:00
|
|
|
repo = "pdfpc";
|
|
|
|
owner = "pdfpc";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-5HFmbVsNajMwo+lBe9kJcJyQGe61N6Oy2CI/WJwmSE4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
cmake pkg-config vala
|
2020-04-24 23:36:52 +00:00
|
|
|
# For setup hook
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3 libgee poppler
|
2022-12-28 21:21:41 +00:00
|
|
|
libpthreadstubs
|
2020-04-24 23:36:52 +00:00
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
(gst-plugins-good.override { gtkSupport = true; })
|
|
|
|
gst-libav
|
2022-12-28 21:21:41 +00:00
|
|
|
qrencode
|
2021-01-05 17:05:55 +00:00
|
|
|
webkitgtk
|
|
|
|
discount
|
|
|
|
json-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
patches = [
|
|
|
|
# needed for compiling pdfpc 4.6.0 with vala 0.56.7, see
|
|
|
|
# https://github.com/pdfpc/pdfpc/issues/686
|
|
|
|
# https://github.com/pdfpc/pdfpc/pull/687
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/pdfpc/pdfpc/commit/d38edfac63bec54173b4b31eae5c7fb46cd8f714.diff";
|
|
|
|
hash = "sha256-KC2oyzcwU2fUmxaed8qAsKcePwR5KcXgpVdstJg8KmU=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
cmakeFlags = lib.optional stdenv.isDarwin "-DMOVIES=OFF";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A presenter console with multi-monitor support for PDF files";
|
|
|
|
homepage = "https://pdfpc.github.io/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|