summary refs log tree commit diff
path: root/pkgs/development/libraries/glib-networking
diff options
context:
space:
mode:
authorVäinö Järvelä <vaino.jarvela@reaktor.com>2018-02-24 07:53:35 +0200
committerVäinö Järvelä <vaino.jarvela@reaktor.com>2018-02-24 07:53:35 +0200
commit5291c2079b6241f7b18c04e9af6fe6d49ef948bf (patch)
tree863a23767ef9f48c8c4ffd34b694bf2829e3939e /pkgs/development/libraries/glib-networking
parent381cb8b5ad5a66e06a96eb0c2854293e5756a9ee (diff)
downloadnixpkgs-5291c2079b6241f7b18c04e9af6fe6d49ef948bf.tar
nixpkgs-5291c2079b6241f7b18c04e9af6fe6d49ef948bf.tar.gz
nixpkgs-5291c2079b6241f7b18c04e9af6fe6d49ef948bf.tar.bz2
nixpkgs-5291c2079b6241f7b18c04e9af6fe6d49ef948bf.tar.lz
nixpkgs-5291c2079b6241f7b18c04e9af6fe6d49ef948bf.tar.xz
nixpkgs-5291c2079b6241f7b18c04e9af6fe6d49ef948bf.tar.zst
nixpkgs-5291c2079b6241f7b18c04e9af6fe6d49ef948bf.zip
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.
Diffstat (limited to 'pkgs/development/libraries/glib-networking')
-rw-r--r--pkgs/development/libraries/glib-networking/default.nix3
1 files changed, 2 insertions, 1 deletions
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";