json-glib: fixup darwin install_name

Couldn't figure out how to fix it durning the build.
This commit is contained in:
Daiderd Jordan 2018-01-30 22:03:43 +01:00
parent ade2840f20
commit 787d371c28
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -1,4 +1,7 @@
{ stdenv, fetchurl, fetchpatch, glib, meson, ninja, pkgconfig, gettext, gobjectIntrospection, dbus, libintlOrEmpty }:
{ stdenv, fetchurl, fetchpatch, glib, meson, ninja, pkgconfig, gettext
, gobjectIntrospection, dbus, libintlOrEmpty
, fixDarwinDylibNames
}:
stdenv.mkDerivation rec {
name = "json-glib-${minVer}.2";
@ -11,7 +14,8 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ glib ];
nativeBuildInputs = [ meson ninja pkgconfig gettext gobjectIntrospection ];
buildInputs = libintlOrEmpty;
buildInputs = libintlOrEmpty
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";