+8
-4
doc/languages-frameworks/pkg-config.section.md
+8
-4
doc/languages-frameworks/pkg-config.section.md
···Packages should set `meta.pkgConfigModules` with the list of package config modules they provide.-They should also use `testers.testMetaPkgConfig` to check that the final built package matches that list.+They should also use `testers.hasPkgConfigModules` to check that the final built package matches that list,Additionally, the [`validatePkgConfig` setup hook](https://nixos.org/manual/nixpkgs/stable/#validatepkgconfig), will do extra checks on to-be-installed pkg-config modules.···
+26
-6
pkgs/build-support/testers/hasPkgConfigModules/tester.nix
+26
-6
pkgs/build-support/testers/hasPkgConfigModules/tester.nix
···description = "Test whether ${package.name} exposes pkg-config modules ${lib.concatStringsSep ", " moduleNames}.";···+echo "❌ pkg-config module $moduleName exists and has version $moduleVersion when $version was expected"+if [[ $notFound -eq 0 ]] && ([[ $versionMismatch -eq 0 ]] || [[ "$versionCheck" == false ]]); then
+13
-2
pkgs/build-support/testers/hasPkgConfigModules/tests.nix
+13
-2
pkgs/build-support/testers/hasPkgConfigModules/tests.nix
···
+4
-1
pkgs/development/libraries/miniz/default.nix
+4
-1
pkgs/development/libraries/miniz/default.nix
···