2014-03-11 20:55:52 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, intltool, gnutls, libproxy
|
2015-05-29 21:26:07 +00:00
|
|
|
, gsettings_desktop_schemas, cacert }:
|
2011-04-15 05:24:06 +00:00
|
|
|
|
2014-03-11 20:55:52 +00:00
|
|
|
let
|
2015-04-10 15:02:57 +00:00
|
|
|
ver_maj = "2.44";
|
|
|
|
ver_min = "0";
|
2014-03-11 20:55:52 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "glib-networking-${ver_maj}.${ver_min}";
|
2012-03-09 06:18:42 +00:00
|
|
|
|
2011-04-15 05:24:06 +00:00
|
|
|
src = fetchurl {
|
2014-03-11 20:55:52 +00:00
|
|
|
url = "mirror://gnome/sources/glib-networking/${ver_maj}/${name}.tar.xz";
|
2015-04-10 15:02:57 +00:00
|
|
|
sha256 = "8f8a340d3ba99bfdef38b653da929652ea6640e27969d29f7ac51fbbe11a4346";
|
2011-04-15 05:24:06 +00:00
|
|
|
};
|
|
|
|
|
2015-06-05 20:00:52 +00:00
|
|
|
configureFlags = "--with-ca-certificates=${cacert}/etc/ssl/certs/ca-bundle.crt";
|
2014-03-11 20:55:52 +00:00
|
|
|
|
2011-04-15 05:24:06 +00:00
|
|
|
preBuild = ''
|
|
|
|
sed -e "s@${glib}/lib/gio/modules@$out/lib/gio/modules@g" -i $(find . -name Makefile)
|
|
|
|
'';
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2014-03-11 20:55:52 +00:00
|
|
|
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;
|
|
|
|
};
|
2011-04-15 05:24:06 +00:00
|
|
|
}
|
2014-03-11 20:55:52 +00:00
|
|
|
|