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