55932c1bec
This reverts commit cd52c04456
and
others.
Managing certificates (including revoking certificates and adding
custom certificates) becomes extremely painful if every package in the
system potentially depends on a different copy of cacert. Also, it
makes updating cacert rather expensive.
33 lines
960 B
Nix
33 lines
960 B
Nix
{ stdenv, fetchurl, pkgconfig, glib, intltool, gnutls, libproxy
|
|
, gsettings_desktop_schemas }:
|
|
|
|
let
|
|
ver_maj = "2.44";
|
|
ver_min = "0";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "glib-networking-${ver_maj}.${ver_min}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/glib-networking/${ver_maj}/${name}.tar.xz";
|
|
sha256 = "8f8a340d3ba99bfdef38b653da929652ea6640e27969d29f7ac51fbbe11a4346";
|
|
};
|
|
|
|
configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt";
|
|
|
|
preBuild = ''
|
|
sed -e "s@${glib}/lib/gio/modules@$out/lib/gio/modules@g" -i $(find . -name Makefile)
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
|
propagatedBuildInputs = [ glib gnutls libproxy gsettings_desktop_schemas ];
|
|
|
|
doCheck = false; # tests need to access the certificates (among other things)
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Network-related giomodules for glib";
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|
|
|