2014-03-11 13:55:52 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, intltool, gnutls, libproxy
|
2015-07-30 16:30:15 -07:00
|
|
|
, gsettings_desktop_schemas }:
|
2011-04-14 22:24:06 -07:00
|
|
|
|
2014-03-11 13:55:52 -07:00
|
|
|
let
|
2017-09-18 02:12:30 -07:00
|
|
|
ver_maj = "2.54";
|
2016-09-28 16:58:27 -07:00
|
|
|
ver_min = "0";
|
2014-03-11 13:55:52 -07:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "glib-networking-${ver_maj}.${ver_min}";
|
2012-03-08 22:18:42 -08:00
|
|
|
|
2011-04-14 22:24:06 -07:00
|
|
|
src = fetchurl {
|
2014-03-11 13:55:52 -07:00
|
|
|
url = "mirror://gnome/sources/glib-networking/${ver_maj}/${name}.tar.xz";
|
2017-09-18 02:12:30 -07:00
|
|
|
sha256 = "5961b3779080b72314b373ff5d4790eb7e41b75ca91816ad7a81ef32922f7096";
|
2011-04-14 22:24:06 -07:00
|
|
|
};
|
|
|
|
|
2016-08-28 17:30:01 -07:00
|
|
|
outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
|
2015-10-11 07:06:34 -07:00
|
|
|
|
2015-07-30 16:30:15 -07:00
|
|
|
configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt";
|
2014-03-11 13:55:52 -07:00
|
|
|
|
2011-04-14 22:24:06 -07:00
|
|
|
preBuild = ''
|
2015-10-11 07:06:34 -07:00
|
|
|
sed -e "s@${glib.out}/lib/gio/modules@$out/lib/gio/modules@g" -i $(find . -name Makefile)
|
2011-04-14 22:24:06 -07:00
|
|
|
'';
|
|
|
|
|
2012-12-28 10:20:09 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2014-03-11 13:55:52 -07: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-14 22:24:06 -07:00
|
|
|
}
|
2014-03-11 13:55:52 -07:00
|
|
|
|