2018-09-04 17:44:57 -07:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, glib, gettext, python3, gnutls, p11-kit, libproxy, gnome3
|
2018-02-24 18:23:58 -08:00
|
|
|
, gsettings-desktop-schemas }:
|
2011-04-14 22:24:06 -07:00
|
|
|
|
2014-03-11 13:55:52 -07:00
|
|
|
let
|
2018-03-02 17:40:53 -08:00
|
|
|
pname = "glib-networking";
|
2018-09-04 17:44:57 -07:00
|
|
|
version = "2.58.0";
|
2014-03-11 13:55:52 -07:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-02 17:40:53 -08:00
|
|
|
name = "${pname}-${version}";
|
2012-03-08 22:18:42 -08:00
|
|
|
|
2011-04-14 22:24:06 -07:00
|
|
|
src = fetchurl {
|
2018-10-04 17:12:11 -07:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-04 17:44:57 -07:00
|
|
|
sha256 = "0s006gs9nsq6mg31spqha1jffzmp6qjh10y27h0fxf1iw1ah5ymx";
|
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
|
|
|
|
2018-04-26 13:59:34 -07:00
|
|
|
PKG_CONFIG_GIO_2_0_GIOMODULEDIR = "${placeholder "out"}/lib/gio/modules";
|
2014-03-11 13:55:52 -07:00
|
|
|
|
2018-03-13 19:46:24 -07:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs meson_post_install.py
|
2011-04-14 22:24:06 -07:00
|
|
|
'';
|
|
|
|
|
2018-09-03 11:11:20 -07:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkgconfig gettext
|
|
|
|
python3 # install_script
|
|
|
|
];
|
2018-03-13 19:46:24 -07:00
|
|
|
propagatedBuildInputs = [ glib gnutls p11-kit libproxy gsettings-desktop-schemas ];
|
2018-01-07 05:18:40 -08:00
|
|
|
|
2014-03-11 13:55:52 -07:00
|
|
|
doCheck = false; # tests need to access the certificates (among other things)
|
|
|
|
|
2018-03-02 17:40:53 -08:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-03-11 13:55:52 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Network-related giomodules for glib";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2011-04-14 22:24:06 -07:00
|
|
|
}
|