Merge pull request #34431 from LnL7/darwin-json-glib

json-glib: fixup darwin install_name
This commit is contained in:
Daiderd Jordan 2018-02-02 00:25:37 +01:00 committed by GitHub
commit a64f8e888f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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";