From d8cb19b22e8ead867f968c87aed561181b2caa00 Mon Sep 17 00:00:00 2001 From: Asko Soukka Date: Tue, 30 Jun 2015 11:24:05 +0300 Subject: darwin: graphviz: remove -lstdc++ on darwin --- pkgs/tools/graphics/graphviz/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkgs') diff --git a/pkgs/tools/graphics/graphviz/default.nix b/pkgs/tools/graphics/graphviz/default.nix index fbf1c114d0a6..f9fbf1f88ea7 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 ''; -- cgit 1.4.1