glib: Add meta.pkgConfigModules and test

This commit is contained in:
John Ericson 2023-02-11 09:06:48 -05:00
parent 5df263bdc0
commit b1aa0e9f2a

View file

@ -19,6 +19,7 @@
, desktop-file-utils, shared-mime-info
, darwin
, makeHardcodeGsettingsPatch
, testers
}:
assert stdenv.isLinux -> util-linuxMinimal != null;
@ -280,7 +281,10 @@ stdenv.mkDerivation (finalAttrs: {
getSchemaPath = pkg: makeSchemaPath pkg pkg.name;
getSchemaDataDirPath = pkg: makeSchemaDataDirPath pkg pkg.name;
tests.withChecks = finalAttrs.finalPackage.overrideAttrs (_: { doCheck = true; });
tests = {
withChecks = finalAttrs.finalPackage.overrideAttrs (_: { doCheck = true; });
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
inherit flattenInclude;
updateScript = gnome.updateScript {
@ -306,6 +310,11 @@ stdenv.mkDerivation (finalAttrs: {
homepage = "https://wiki.gnome.org/Projects/GLib";
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members ++ (with maintainers; [ lovek323 raskin ]);
pkgConfigModules = [
"gio-2.0"
"gobject-2.0"
"gthread-2.0"
];
platforms = platforms.unix;
longDescription = ''