mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
glib: fix build on darwin
* add libintlOrEmpty to build inputs * add -lintl to CFLAGS
This commit is contained in:
parent
8ac7701c4c
commit
8c54b95273
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconvOrEmpty, zlib, libffi
|
||||
, python, pcre, libelf }:
|
||||
, python, pcre, libelf, libintlOrEmpty }:
|
||||
|
||||
# TODO:
|
||||
# * Add gio-module-fam
|
||||
|
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
# configure script looks for d-bus but it is only needed for tests
|
||||
buildInputs = [ libelf ];
|
||||
buildInputs = [ libelf ] ++ libintlOrEmpty;
|
||||
|
||||
nativeBuildInputs = [ perl pkgconfig gettext python ];
|
||||
|
||||
|
@ -43,6 +43,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
postConfigure = "sed '/SANE_MALLOC_PROTOS/s,^,//,' -i config.h";
|
||||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''rm -rvf $out/share/gtk-doc'';
|
||||
|
|
Loading…
Reference in a new issue