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