2019-09-02 13:19:36 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2019-09-02 16:55:29 +00:00
|
|
|
, substituteAll
|
2019-09-02 13:19:36 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2019-09-02 17:06:54 +00:00
|
|
|
, nixosTests
|
2019-09-02 13:19:36 +00:00
|
|
|
, pkgconfig
|
|
|
|
, glib
|
|
|
|
, gettext
|
2019-09-02 17:06:54 +00:00
|
|
|
, makeWrapper
|
2019-09-02 13:19:36 +00:00
|
|
|
, python3
|
|
|
|
, gnutls
|
|
|
|
, p11-kit
|
|
|
|
, libproxy
|
|
|
|
, gnome3
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2011-04-15 05:24:06 +00:00
|
|
|
|
2019-09-02 13:19:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 01:40:53 +00:00
|
|
|
pname = "glib-networking";
|
2020-01-07 11:18:05 +00:00
|
|
|
version = "2.62.3";
|
2012-03-09 06:18:42 +00:00
|
|
|
|
2019-09-02 17:06:54 +00:00
|
|
|
outputs = [ "out" "installedTests" ];
|
|
|
|
|
2011-04-15 05:24:06 +00:00
|
|
|
src = fetchurl {
|
2019-09-02 13:19:36 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-01-07 11:18:05 +00:00
|
|
|
sha256 = "1xvzixzwwh8wk8f79qbm2gl7hp3hj1a7skv281v5qsx74dpzi8cc";
|
2011-04-15 05:24:06 +00:00
|
|
|
};
|
|
|
|
|
2019-09-02 16:55:29 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./hardcode-gsettings.patch;
|
|
|
|
gds_gsettings_path = glib.getSchemaPath gsettings-desktop-schemas;
|
|
|
|
})
|
2019-09-02 17:06:54 +00:00
|
|
|
|
|
|
|
./installed-tests-path.patch
|
2019-09-02 16:55:29 +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 05:24:06 +00:00
|
|
|
'';
|
|
|
|
|
2018-09-03 18:11:20 +00:00
|
|
|
nativeBuildInputs = [
|
2019-09-02 13:19:36 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
gettext
|
2019-09-02 17:06:54 +00:00
|
|
|
makeWrapper
|
2019-09-02 13:19:36 +00:00
|
|
|
python3 # for install_script
|
|
|
|
];
|
|
|
|
|
2019-09-02 16:50:24 +00:00
|
|
|
buildInputs = [
|
2019-09-02 13:19:36 +00:00
|
|
|
glib
|
|
|
|
gnutls
|
|
|
|
p11-kit
|
|
|
|
libproxy
|
|
|
|
gsettings-desktop-schemas
|
2018-09-03 18:11:20 +00: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 17:06:54 +00: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 17:06:54 +00:00
|
|
|
|
|
|
|
tests = {
|
2019-11-07 13:11:00 +00:00
|
|
|
installedTests = nixosTests.installed-tests.glib-networking;
|
2019-09-02 17:06:54 +00: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 13:24:12 +00: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 05:24:06 +00:00
|
|
|
}
|