From 5038924756ca156303d7fb1b265091bb133c7f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Sun, 5 Feb 2023 23:04:14 +1100 Subject: [PATCH] dia: fix darwin build Patch PDF plugin to build correctly with clang. --- pkgs/applications/graphics/dia/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/graphics/dia/default.nix b/pkgs/applications/graphics/dia/default.nix index 6b75bf11d423..0adc585603ef 100644 --- a/pkgs/applications/graphics/dia/default.nix +++ b/pkgs/applications/graphics/dia/default.nix @@ -34,6 +34,9 @@ stdenv.mkDerivation { patches = [ ./poppler-22_09-build-fix.patch ]; + # Required for the PDF plugin when building with clang. + CXXFLAGS = "-std=c++17"; + preConfigure = '' patchShebangs . '';