pdfpc: fix build with vala 0.46

This commit is contained in:
worldofpeace 2019-10-03 14:35:11 -04:00
parent 1e5457c8b4
commit 6acce347fb

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, cmake, makeWrapper, pkgconfig, vala, gtk3, libgee { stdenv, fetchFromGitHub, cmake, pkgconfig, vala, gtk3, libgee, fetchpatch
, poppler, libpthreadstubs, gstreamer, gst-plugins-base, librsvg, pcre, gobject-introspection }: , poppler, libpthreadstubs, gstreamer, gst-plugins-base, librsvg, pcre, gobject-introspection, wrapGAppsHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${product}-${version}"; name = "${product}-${version}";
@ -17,16 +17,20 @@ stdenv.mkDerivation rec {
cmake pkgconfig vala cmake pkgconfig vala
# For setup hook # For setup hook
gobject-introspection gobject-introspection
wrapGAppsHook
]; ];
buildInputs = [ gstreamer gst-plugins-base gtk3 libgee poppler buildInputs = [ gstreamer gst-plugins-base gtk3 libgee poppler
libpthreadstubs makeWrapper librsvg pcre ]; libpthreadstubs librsvg pcre ];
cmakeFlags = stdenv.lib.optionalString stdenv.isDarwin "-DMOVIES=OFF"; cmakeFlags = stdenv.lib.optionalString stdenv.isDarwin "-DMOVIES=OFF";
postInstall = '' patches = [
wrapProgram $out/bin/pdfpc \ # Fix build vala 0.46
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" (fetchpatch {
''; url = "https://github.com/pdfpc/pdfpc/commit/bbc16b97ecbdcdd22c2dc827a5c0e8b569073312.patch";
sha256 = "0wi1rqcvg65cxnxvmvavcvghqyksnpijq1p91m57jaby3hb0pdcy";
})
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A presenter console with multi-monitor support for PDF files"; description = "A presenter console with multi-monitor support for PDF files";