core/pkgs/build-support/testers/testMetaPkgConfig/tester.nix
2024-06-30 09:16:52 +01:00

19 lines
415 B
Nix

{
lib,
runCommand,
testers,
}:
package:
runCommand "check-meta-pkg-config-modules-for-${package.name}"
{
meta = {
description = "Test whether ${package.name} exposes all pkg-config modules ${toString package.meta.pkgConfigModules}";
};
dependsOn = testers.hasPkgConfigModules { inherit package; };
}
''
echo "found all of ${toString package.meta.pkgConfigModules}" > "$out"
''