summary refs log tree commit diff
path: root/pkgs/tools/graphics/graphviz/default.nix
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-10-28 15:46:47 -0700
committerJohn Wiegley <johnw@newartisans.com>2015-10-28 15:46:47 -0700
commitef8c8a3b7c2b565ea53b46f7c6d94eb98684a402 (patch)
tree63584be1aa1b7385c6ecaa94765bc9653f5b0475 /pkgs/tools/graphics/graphviz/default.nix
parente54c0ddcb0e84beff72e03375bae30d9bd510400 (diff)
parentd8cb19b22e8ead867f968c87aed561181b2caa00 (diff)
downloadnixpkgs-ef8c8a3b7c2b565ea53b46f7c6d94eb98684a402.tar
nixpkgs-ef8c8a3b7c2b565ea53b46f7c6d94eb98684a402.tar.gz
nixpkgs-ef8c8a3b7c2b565ea53b46f7c6d94eb98684a402.tar.bz2
nixpkgs-ef8c8a3b7c2b565ea53b46f7c6d94eb98684a402.tar.lz
nixpkgs-ef8c8a3b7c2b565ea53b46f7c6d94eb98684a402.tar.xz
nixpkgs-ef8c8a3b7c2b565ea53b46f7c6d94eb98684a402.tar.zst
nixpkgs-ef8c8a3b7c2b565ea53b46f7c6d94eb98684a402.zip
Merge pull request #10568 from datakurre/datakurre-graphviz
darwin: graphviz: remove -lstdc++ on darwin
Diffstat (limited to 'pkgs/tools/graphics/graphviz/default.nix')
-rw-r--r--pkgs/tools/graphics/graphviz/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix
index fbf1c114d0a..f9fbf1f88ea 100644
--- a/pkgs/tools/graphics/graphviz/default.nix
+++ b/pkgs/tools/graphics/graphviz/default.nix
@@ -38,6 +38,13 @@ stdenv.mkDerivation rec {
     ]
     ++ stdenv.lib.optional (xorg == null) "--without-x";
 
+  prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
+    substituteInPlace cmd/dot/Makefile.in --replace "-lstdc++" ""
+    substituteInPlace cmd/edgepaint/Makefile.in --replace "-lstdc++" ""
+    substituteInPlace cmd/mingle/Makefile.in --replace "-lstdc++" ""
+    substituteInPlace plugin/gdiplus/Makefile.in --replace "-lstdc++" ""
+  '';
+
   preBuild = ''
     sed -e 's@am__append_5 *=.*@am_append_5 =@' -i lib/gvc/Makefile
   '';