From e9ef15c32206864555b39b53465562271c9153c9 Mon Sep 17 00:00:00 2001 From: Väinö Järvelä Date: Fri, 23 Feb 2018 20:36:19 +0200 Subject: glib-networking: Fix Darwin support --- pkgs/development/libraries/glib-networking/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/development/libraries/glib-networking') diff --git a/pkgs/development/libraries/glib-networking/default.nix b/pkgs/development/libraries/glib-networking/default.nix index 87f3c78a82e..9336e5bbae9 100644 --- a/pkgs/development/libraries/glib-networking/default.nix +++ b/pkgs/development/libraries/glib-networking/default.nix @@ -17,6 +17,8 @@ stdenv.mkDerivation rec { configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"; + LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; + preBuild = '' sed -e "s@${glib.out}/lib/gio/modules@$out/lib/gio/modules@g" -i $(find . -name Makefile) ''; -- cgit 1.4.1 From 5291c2079b6241f7b18c04e9af6fe6d49ef948bf Mon Sep 17 00:00:00 2001 From: Väinö Järvelä Date: Sat, 24 Feb 2018 07:53:35 +0200 Subject: glib-networking: Disable ca-certificates on Darwin macOS does not have certificates at /etc/ssl/certs. cacerts package has been deprecated. And there is a long standing issue at https://github.com/NixOS/nixpkgs/issues/8247 for figuring out how to handle certificates. Disabling glib-networking ca-certificates on Darwin removes constant warnings when opening remote connections. --- pkgs/development/libraries/glib-networking/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/development/libraries/glib-networking') diff --git a/pkgs/development/libraries/glib-networking/default.nix b/pkgs/development/libraries/glib-networking/default.nix index 9336e5bbae9..954e5d1f6b5 100644 --- a/pkgs/development/libraries/glib-networking/default.nix +++ b/pkgs/development/libraries/glib-networking/default.nix @@ -15,7 +15,8 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs - configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"; + configureFlags = if stdenv.isDarwin then "--without-ca-certificates" + else "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"; LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; -- cgit 1.4.1