summary refs log tree commit diff
path: root/pkgs/tools/graphics/graphviz/default.nix
diff options
context:
space:
mode:
authorJude Taylor <me@jude.bio>2015-10-28 16:09:51 -0700
committerJude Taylor <me@jude.bio>2015-10-28 16:09:51 -0700
commit43183297142e854d5213a6d8b5a22c1da406e2c7 (patch)
treebf3860c901e0748586f5c02823ed720c093999c7 /pkgs/tools/graphics/graphviz/default.nix
parentef8c8a3b7c2b565ea53b46f7c6d94eb98684a402 (diff)
downloadnixpkgs-43183297142e854d5213a6d8b5a22c1da406e2c7.tar
nixpkgs-43183297142e854d5213a6d8b5a22c1da406e2c7.tar.gz
nixpkgs-43183297142e854d5213a6d8b5a22c1da406e2c7.tar.bz2
nixpkgs-43183297142e854d5213a6d8b5a22c1da406e2c7.tar.lz
nixpkgs-43183297142e854d5213a6d8b5a22c1da406e2c7.tar.xz
nixpkgs-43183297142e854d5213a6d8b5a22c1da406e2c7.tar.zst
nixpkgs-43183297142e854d5213a6d8b5a22c1da406e2c7.zip
link graphviz with libc++ instead of nothing on darwin
Diffstat (limited to 'pkgs/tools/graphics/graphviz/default.nix')
-rw-r--r--pkgs/tools/graphics/graphviz/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix
index f9fbf1f88ea..5635e3a69ff 100644
--- a/pkgs/tools/graphics/graphviz/default.nix
+++ b/pkgs/tools/graphics/graphviz/default.nix
@@ -38,11 +38,11 @@ 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++" ""
+  postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
+    for foo in cmd/dot/Makefile.in cmd/edgepaint/Makefile.in \
+                    cmd/mingle/Makefile.in plugin/gdiplus/Makefile.in; do
+      substituteInPlace "$foo" --replace "-lstdc++" "-lc++"
+    done
   '';
 
   preBuild = ''