summary refs log tree commit diff
path: root/pkgs/applications/graphics/inkscape/default.nix
diff options
context:
space:
mode:
authorSpencer Whitt <sw@swhitt.me>2015-04-08 01:02:59 -0400
committerSpencer Whitt <sw@swhitt.me>2015-04-08 01:05:51 -0400
commit22dfdbd2cfea054697864ee3b60c911602d40d77 (patch)
treebde9ddfb826d277c2a97950b57a991dedca3a089 /pkgs/applications/graphics/inkscape/default.nix
parent2f4f77c682d9c2874d8a8787109069fac4c710b4 (diff)
downloadnixpkgs-22dfdbd2cfea054697864ee3b60c911602d40d77.tar
nixpkgs-22dfdbd2cfea054697864ee3b60c911602d40d77.tar.gz
nixpkgs-22dfdbd2cfea054697864ee3b60c911602d40d77.tar.bz2
nixpkgs-22dfdbd2cfea054697864ee3b60c911602d40d77.tar.lz
nixpkgs-22dfdbd2cfea054697864ee3b60c911602d40d77.tar.xz
nixpkgs-22dfdbd2cfea054697864ee3b60c911602d40d77.tar.zst
nixpkgs-22dfdbd2cfea054697864ee3b60c911602d40d77.zip
inkscape: patch to build with clang (Darwin)
Diffstat (limited to 'pkgs/applications/graphics/inkscape/default.nix')
-rw-r--r--pkgs/applications/graphics/inkscape/default.nix5
1 files changed, 5 insertions, 0 deletions
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 = [