summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorhqurve <hqurve@outlook.com>2022-03-04 17:02:08 -0400
committerhqurve <hqurve@outlook.com>2022-03-06 13:37:47 -0400
commit599cd39ec13f60e45ba7cbe445a7e0842060bf3b (patch)
treea38ee646e987939bc8b17c521e6b8986564624a8 /pkgs/applications/graphics
parentaaf7d5b4375055276e999fe3c76db78751fce55c (diff)
downloadnixpkgs-599cd39ec13f60e45ba7cbe445a7e0842060bf3b.tar
nixpkgs-599cd39ec13f60e45ba7cbe445a7e0842060bf3b.tar.gz
nixpkgs-599cd39ec13f60e45ba7cbe445a7e0842060bf3b.tar.bz2
nixpkgs-599cd39ec13f60e45ba7cbe445a7e0842060bf3b.tar.lz
nixpkgs-599cd39ec13f60e45ba7cbe445a7e0842060bf3b.tar.xz
nixpkgs-599cd39ec13f60e45ba7cbe445a7e0842060bf3b.tar.zst
nixpkgs-599cd39ec13f60e45ba7cbe445a7e0842060bf3b.zip
openboard: fix build
Poppler requires at least C++17 however openboard is configured to build with C++14
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/openboard/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/openboard/default.nix b/pkgs/applications/graphics/openboard/default.nix
index cf16ecc03cb..084787d6315 100644
--- a/pkgs/applications/graphics/openboard/default.nix
+++ b/pkgs/applications/graphics/openboard/default.nix
@@ -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' \