From 22dfdbd2cfea054697864ee3b60c911602d40d77 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 01:02:59 -0400 Subject: [PATCH] inkscape: patch to build with clang (Darwin) --- pkgs/applications/graphics/inkscape/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix index c370cc069c5..ca52a4f2766 100644 --- a/pkgs/applications/graphics/inkscape/default.nix +++ b/pkgs/applications/graphics/inkscape/default.nix @@ -16,6 +16,11 @@ stdenv.mkDerivation rec { postPatch = '' patchShebangs share/extensions + '' + # Clang gets misdetected, so hardcode the right answer + + stdenv.lib.optionalString (stdenv.cc.cc.isClang or false) '' + substituteInPlace src/ui/tool/node.h \ + --replace "#if __cplusplus >= 201103L" "#if true" ''; propagatedBuildInputs = [