2014-03-11 20:55:52 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, intltool, gnutls, libproxy
|
2018-02-25 02:23:58 +00:00
|
|
|
, gsettings-desktop-schemas }:
|
2011-04-15 06:24:06 +01:00
|
|
|
|
2014-03-11 20:55:52 +00:00
|
|
|
let
|
2017-09-18 10:12:30 +01:00
|
|
|
ver_maj = "2.54";
|
2017-12-03 02:20:51 +00:00
|
|
|
ver_min = "1";
|
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 06:24:06 +01:00
|
|
|
src = fetchurl {
|
2014-03-11 20:55:52 +00:00
|
|
|
url = "mirror://gnome/sources/glib-networking/${ver_maj}/${name}.tar.xz";
|
2017-12-03 02:20:51 +00:00
|
|
|
sha256 = "0bq16m9nh3gcz9x2fvygr0iwxd2pxcbrm3lj3kihsnh1afv8g9za";
|
2011-04-15 06:24:06 +01:00
|
|
|
};
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
|
2015-10-11 15:06:34 +01:00
|
|
|
|
2018-02-24 05:53:35 +00:00
|
|
|
configureFlags = if stdenv.isDarwin then "--without-ca-certificates"
|
|
|
|
else "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt";
|
2014-03-11 20:55:52 +00:00
|
|
|
|
2018-02-23 18:36:19 +00:00
|
|
|
LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
2014-03-11 20:55:52 +00:00
|
|
|
|
2011-04-15 06:24:06 +01:00
|
|
|
preBuild = ''
|
2015-10-11 15:06:34 +01:00
|
|
|
sed -e "s@${glib.out}/lib/gio/modules@$out/lib/gio/modules@g" -i $(find . -name Makefile)
|
2011-04-15 06:24:06 +01:00
|
|
|
'';
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2018-02-25 02:23:58 +00:00
|
|
|
propagatedBuildInputs = [ glib gnutls libproxy gsettings-desktop-schemas ];
|
2014-03-11 20:55:52 +00:00
|
|
|
|
2018-01-07 13:18:40 +00:00
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
|
2014-03-11 20:55:52 +00:00
|
|
|
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 06:24:06 +01:00
|
|
|
}
|
2014-03-11 20:55:52 +00:00
|
|
|
|