glib: fix build on darwin
* add libintlOrEmpty to build inputs * add -lintl to CFLAGS
This commit is contained in:
parent
8ac7701c4c
commit
8c54b95273
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconvOrEmpty, zlib, libffi
|
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconvOrEmpty, zlib, libffi
|
||||||
, python, pcre, libelf }:
|
, python, pcre, libelf, libintlOrEmpty }:
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# * Add gio-module-fam
|
# * Add gio-module-fam
|
||||||
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# configure script looks for d-bus but it is only needed for tests
|
# configure script looks for d-bus but it is only needed for tests
|
||||||
buildInputs = [ libelf ];
|
buildInputs = [ libelf ] ++ libintlOrEmpty;
|
||||||
|
|
||||||
nativeBuildInputs = [ perl pkgconfig gettext python ];
|
nativeBuildInputs = [ perl pkgconfig gettext python ];
|
||||||
|
|
||||||
@ -43,6 +43,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postConfigure = "sed '/SANE_MALLOC_PROTOS/s,^,//,' -i config.h";
|
postConfigure = "sed '/SANE_MALLOC_PROTOS/s,^,//,' -i config.h";
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postInstall = ''rm -rvf $out/share/gtk-doc'';
|
postInstall = ''rm -rvf $out/share/gtk-doc'';
|
||||||
|
Loading…
Reference in New Issue
Block a user