56f2696aec
https://gitlab.gnome.org/GNOME/glib-networking/-/compare/2.76.1...2.78.0 NEWS and build change looks okay. Checked g_settings_get_child and g_settings_new usage since hardcode-gsettings.patch is manually written. Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com> Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
93 lines
1.9 KiB
Nix
93 lines
1.9 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, substituteAll
|
|
, meson
|
|
, ninja
|
|
, nixosTests
|
|
, pkg-config
|
|
, glib
|
|
, gettext
|
|
, makeWrapper
|
|
, gnutls
|
|
, p11-kit
|
|
, libproxy
|
|
, gnome
|
|
, gsettings-desktop-schemas
|
|
, bash
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "glib-networking";
|
|
version = "2.78.0";
|
|
|
|
outputs = [ "out" "installedTests" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "Uv5M6T99xRM0sQKJRZmFjSPIplrEoRELMJIFZdaNOro=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./hardcode-gsettings.patch;
|
|
gds_gsettings_path = glib.getSchemaPath gsettings-desktop-schemas;
|
|
})
|
|
|
|
./installed-tests-path.patch
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
makeWrapper
|
|
glib # for gio-querymodules
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gnutls
|
|
p11-kit
|
|
libproxy
|
|
gsettings-desktop-schemas
|
|
bash # installed-tests shebangs
|
|
];
|
|
|
|
doCheck = false; # tests need to access the certificates (among other things)
|
|
|
|
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
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "odd-unstable";
|
|
};
|
|
|
|
tests = {
|
|
installedTests = nixosTests.installed-tests.glib-networking;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Network-related giomodules for glib";
|
|
homepage = "https://gitlab.gnome.org/GNOME/glib-networking";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|