forked from mirrors/nixpkgs
libsoup: fix build on darwin
* add libintlOrEmpty to build inputs * add -lintl to LDFLAGS
This commit is contained in:
parent
dcc4ffdb7f
commit
f3c863b8e3
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
{ stdenv, fetchurl, glib, libxml2, pkgconfig
|
{ stdenv, fetchurl, glib, libxml2, pkgconfig
|
||||||
, gnomeSupport ? true, libgnome_keyring, sqlite, glib_networking }:
|
, gnomeSupport ? true, libgnome_keyring, sqlite, glib_networking
|
||||||
|
, libintlOrEmpty }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "libsoup-2.38.1";
|
name = "libsoup-2.38.1";
|
||||||
|
@ -10,6 +11,7 @@ stdenv.mkDerivation {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
buildInputs = libintlOrEmpty;
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
propagatedBuildInputs = [ glib libxml2 ]
|
propagatedBuildInputs = [ glib libxml2 ]
|
||||||
++ stdenv.lib.optionals gnomeSupport [ libgnome_keyring sqlite ];
|
++ stdenv.lib.optionals gnomeSupport [ libgnome_keyring sqlite ];
|
||||||
|
@ -18,6 +20,8 @@ stdenv.mkDerivation {
|
||||||
# glib_networking is a runtime dependency, not a compile-time dependency
|
# glib_networking is a runtime dependency, not a compile-time dependency
|
||||||
configureFlags = "--disable-tls-check";
|
configureFlags = "--disable-tls-check";
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit (glib.meta) maintainers platforms;
|
inherit (glib.meta) maintainers platforms;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue