3
0
Fork 0
forked from mirrors/nixpkgs

openboard: fix build

Poppler requires at least C++17 however openboard is configured to build with C++14
This commit is contained in:
hqurve 2022-03-04 17:02:08 -04:00
parent aaf7d5b437
commit 599cd39ec1

View file

@ -1,4 +1,4 @@
{ mkDerivation, lib, fetchFromGitHub, copyDesktopItems, makeDesktopItem, qmake
{ mkDerivation, lib, fetchFromGitHub, fetchpatch, copyDesktopItems, makeDesktopItem, qmake
, qtbase, qtxmlpatterns, qttools, qtwebkit, libGL, fontconfig, openssl, poppler
, ffmpeg, libva, alsa-lib, SDL, x264, libvpx, libvorbis, libtheora, libogg
, libopus, lame, fdk_aac, libass, quazip, libXext, libXfixes }:
@ -32,6 +32,15 @@ in mkDerivation rec {
sha256 = "sha256-OlGXGIMghil/GG6eso20+CWo/hCjarXGs6edXX9pc/M=";
};
patches = [
# Poppler requires at least C++17
(fetchpatch {
name = "use-c-17-for-pdf-on-linux-builds";
url = "https://aur.archlinux.org/cgit/aur.git/plain/use-c-17-for-pdf-on-linux-builds.patch?h=openboard";
sha256 = "sha256-M6HigpOo8ul7qaub4cd7/ATUc85HezEyKyDuzsrZvC8=";
})
];
postPatch = ''
substituteInPlace OpenBoard.pro \
--replace '/usr/include/quazip' '${quazip}/include/QuaZip-Qt5-${quazip.version}/quazip' \