about summary refs log tree commit diff
path: root/pkgs/development/libraries/tk
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2014-04-13 14:56:54 +0200
committerVladimír Čunát <vcunat@gmail.com>2014-04-13 14:56:54 +0200
commit086d6c802b26c11ff7b01b4733de0e3b1b2c1c8d (patch)
tree78f724320fd26a8e553f3f94124c96d333fa2ea8 /pkgs/development/libraries/tk
parent0feb117c209baf1a77e90f922c7d1d98c708b2c7 (diff)
tk on darwin: another attempt to fix build
They add the -lfontconfig explicitly in macports, so hopefully it fixes it.
https://trac.macports.org/browser/trunk/dports/x11/tk/Portfile
Diffstat (limited to 'pkgs/development/libraries/tk')
-rw-r--r--pkgs/development/libraries/tk/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/tk/default.nix b/pkgs/development/libraries/tk/default.nix
index 2757a2543859a..fd3684d189c83 100644
--- a/pkgs/development/libraries/tk/default.nix
+++ b/pkgs/development/libraries/tk/default.nix
@@ -21,6 +21,8 @@ stdenv.mkDerivation {
   buildInputs = [ pkgconfig tcl libXft ]
     ++ stdenv.lib.optional stdenv.isDarwin fontconfig;
 
+  NIX_CFLAGS_LINK = if stdenv.isDarwin then "-lfontconfig" else null;
+
   inherit tcl;
 
   passthru = {