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