mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 11:02:05 +00:00
libsoup: fix build on darwin
* add libintlOrEmpty to build inputs * add -lintl to LDFLAGS
This commit is contained in:
parent
dcc4ffdb7f
commit
f3c863b8e3
|
@ -1,5 +1,6 @@
|
|||
{ stdenv, fetchurl, glib, libxml2, pkgconfig
|
||||
, gnomeSupport ? true, libgnome_keyring, sqlite, glib_networking }:
|
||||
, gnomeSupport ? true, libgnome_keyring, sqlite, glib_networking
|
||||
, libintlOrEmpty }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libsoup-2.38.1";
|
||||
|
@ -10,6 +11,7 @@ stdenv.mkDerivation {
|
|||
};
|
||||
|
||||
|
||||
buildInputs = libintlOrEmpty;
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
propagatedBuildInputs = [ glib libxml2 ]
|
||||
++ stdenv.lib.optionals gnomeSupport [ libgnome_keyring sqlite ];
|
||||
|
@ -18,6 +20,8 @@ stdenv.mkDerivation {
|
|||
# glib_networking is a runtime dependency, not a compile-time dependency
|
||||
configureFlags = "--disable-tls-check";
|
||||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
||||
|
||||
meta = {
|
||||
inherit (glib.meta) maintainers platforms;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue