2019-09-02 14:19:36 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2019-09-02 17:55:29 +01:00
|
|
|
, substituteAll
|
2019-09-02 14:19:36 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
2019-09-02 18:06:54 +01:00
|
|
|
, nixosTests
|
2019-09-02 14:19:36 +01:00
|
|
|
, pkgconfig
|
|
|
|
, glib
|
|
|
|
, gettext
|
2019-09-02 18:06:54 +01:00
|
|
|
, makeWrapper
|
2019-09-02 14:19:36 +01:00
|
|
|
, python3
|
|
|
|
, gnutls
|
|
|
|
, p11-kit
|
|
|
|
, libproxy
|
|
|
|
, gnome3
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2011-04-15 06:24:06 +01:00
|
|
|
|
2019-09-02 14:19:36 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 01:40:53 +00:00
|
|
|
pname = "glib-networking";
|
2019-12-23 12:08:52 +00:00
|
|
|
version = "2.62.2";
|
2012-03-09 06:18:42 +00:00
|
|
|
|
2019-09-02 18:06:54 +01:00
|
|
|
outputs = [ "out" "installedTests" ];
|
|
|
|
|
2011-04-15 06:24:06 +01:00
|
|
|
src = fetchurl {
|
2019-09-02 14:19:36 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-12-23 12:08:52 +00:00
|
|
|
sha256 = "0i2mw75297ql72h47vyvff3hqa0kcmqybblj52fqrarb0kfbhi06";
|
2011-04-15 06:24:06 +01:00
|
|
|
};
|
|
|
|
|
2019-09-02 17:55:29 +01:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-gsettings.patch;
|
|
|
|
gds_gsettings_path = glib.getSchemaPath gsettings-desktop-schemas;
|
|
|
|
})
|
2019-09-02 18:06:54 +01:00
|
|
|
|
|
|
|
./installed-tests-path.patch
|
2019-09-02 17:55:29 +01: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 = [
|
2019-09-02 14:19:36 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
gettext
|
2019-09-02 18:06:54 +01:00
|
|
|
makeWrapper
|
2019-09-02 14:19:36 +01:00
|
|
|
python3 # for install_script
|
|
|
|
];
|
|
|
|
|
2019-09-02 17:50:24 +01:00
|
|
|
buildInputs = [
|
2019-09-02 14:19:36 +01:00
|
|
|
glib
|
|
|
|
gnutls
|
|
|
|
p11-kit
|
|
|
|
libproxy
|
|
|
|
gsettings-desktop-schemas
|
2018-09-03 19:11:20 +01:00
|
|
|
];
|
2018-01-07 13:18:40 +00:00
|
|
|
|
2014-03-11 20:55:52 +00:00
|
|
|
doCheck = false; # tests need to access the certificates (among other things)
|
|
|
|
|
2019-09-02 18:06:54 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dinstalled_tests=true"
|
|
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
find "$installedTests/libexec" "$out/libexec" -type f -executable -print0 \
|
|
|
|
| while IFS= read -r -d "" file; do
|
|
|
|
echo "Wrapping program '$file'"
|
|
|
|
wrapProgram "$file" --prefix GIO_EXTRA_MODULES : "$out/lib/gio/modules"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2018-03-03 01:40:53 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
2019-09-02 18:06:54 +01:00
|
|
|
|
|
|
|
tests = {
|
2019-11-07 13:11:00 +00:00
|
|
|
installedTests = nixosTests.installed-tests.glib-networking;
|
2019-09-02 18:06:54 +01:00
|
|
|
};
|
2018-03-03 01:40:53 +00:00
|
|
|
};
|
|
|
|
|
2014-03-11 20:55:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Network-related giomodules for glib";
|
2019-09-02 14:24:12 +01:00
|
|
|
homepage = https://gitlab.gnome.org/GNOME/glib-networking;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = gnome3.maintainers;
|
2014-03-11 20:55:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2011-04-15 06:24:06 +01:00
|
|
|
}
|