2018-03-14 03:46:24 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, meson, ninja, pkgconfig, glib, gettext, gnutls, p11-kit, libproxy, gnome3
|
2018-02-25 03:23:58 +01:00
|
|
|
, gsettings-desktop-schemas }:
|
2011-04-15 07:24:06 +02:00
|
|
|
|
2014-03-11 21:55:52 +01:00
|
|
|
let
|
2018-03-03 02:40:53 +01:00
|
|
|
pname = "glib-networking";
|
2018-03-13 02:03:18 +01:00
|
|
|
version = "2.56.0";
|
2014-03-11 21:55:52 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 02:40:53 +01:00
|
|
|
name = "${pname}-${version}";
|
2012-03-09 07:18:42 +01:00
|
|
|
|
2011-04-15 07:24:06 +02:00
|
|
|
src = fetchurl {
|
2018-03-03 02:40:53 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 02:03:18 +01:00
|
|
|
sha256 = "14vw8xwajd7m31bpavg2psk693plhjikwpk8bzf3jl1fmsy11za7";
|
2011-04-15 07:24:06 +02:00
|
|
|
};
|
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
|
2015-10-11 16:06:34 +02:00
|
|
|
|
2018-03-14 03:46:24 +01:00
|
|
|
patches = [
|
|
|
|
# Use GNUTLS system trust for certificates
|
|
|
|
(fetchpatch {
|
2018-05-29 10:00:00 +02:00
|
|
|
url = https://gitlab.gnome.org/GNOME/glib-networking/commit/f1c8feee014007cc913b71357acb609f8d1200df.patch;
|
2018-03-14 03:46:24 +01:00
|
|
|
sha256 = "1rbxqsrcb5if3xs2d18pqzd9xnjysdj715ijc41n5w326fsawg7i";
|
|
|
|
})
|
|
|
|
];
|
2014-03-11 21:55:52 +01:00
|
|
|
|
2018-03-26 14:03:18 +02:00
|
|
|
PKG_CONFIG_GIO_2_0_GIOMODULEDIR = "lib/gio/modules";
|
2014-03-11 21:55:52 +01:00
|
|
|
|
2018-03-14 03:46:24 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs meson_post_install.py
|
2011-04-15 07:24:06 +02:00
|
|
|
'';
|
|
|
|
|
2018-03-14 03:46:24 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext ];
|
|
|
|
propagatedBuildInputs = [ glib gnutls p11-kit libproxy gsettings-desktop-schemas ];
|
2018-01-07 14:18:40 +01:00
|
|
|
|
2014-03-11 21:55:52 +01:00
|
|
|
doCheck = false; # tests need to access the certificates (among other things)
|
|
|
|
|
2018-03-03 02:40:53 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-03-11 21:55:52 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Network-related giomodules for glib";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2011-04-15 07:24:06 +02:00
|
|
|
}
|