summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2016-06-16 19:42:15 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2016-06-19 23:07:54 -0500
commitd5dbeec3b09ff9a0917e08423e860d784a7e9efc (patch)
treeb64ea30a638175a03c3e04eb54fb4b1d653a4210 /pkgs
parentf05bb6d23f2575374c8399a626aed36002302ff7 (diff)
downloadnixlib-d5dbeec3b09ff9a0917e08423e860d784a7e9efc.tar
nixlib-d5dbeec3b09ff9a0917e08423e860d784a7e9efc.tar.gz
nixlib-d5dbeec3b09ff9a0917e08423e860d784a7e9efc.tar.bz2
nixlib-d5dbeec3b09ff9a0917e08423e860d784a7e9efc.tar.lz
nixlib-d5dbeec3b09ff9a0917e08423e860d784a7e9efc.tar.xz
nixlib-d5dbeec3b09ff9a0917e08423e860d784a7e9efc.tar.zst
nixlib-d5dbeec3b09ff9a0917e08423e860d784a7e9efc.zip
json-glib: add libintl for darwin
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/json-glib/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/json-glib/default.nix b/pkgs/development/libraries/json-glib/default.nix
index 5cfafc8e69ae..99dcb3776208 100644
--- a/pkgs/development/libraries/json-glib/default.nix
+++ b/pkgs/development/libraries/json-glib/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, glib, pkgconfig, gobjectIntrospection, dbus }:
+{ stdenv, fetchurl, glib, pkgconfig, gobjectIntrospection, dbus, libintlOrEmpty }:
 
 stdenv.mkDerivation rec {
   name = "json-glib-${minVer}.0";
@@ -13,6 +13,9 @@ stdenv.mkDerivation rec {
 
   propagatedBuildInputs = [ glib gobjectIntrospection ];
   nativeBuildInputs = [ pkgconfig ];
+  buildInputs = libintlOrEmpty;
+
+  NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
 
   meta = with stdenv.lib; {
     homepage = http://live.gnome.org/JsonGlib;