6e4a1b18d9
See docs. Follow-up work: - Existing packages should be converted - `defaultPkgConfigPackages` should assert on `meta.pkgConfigModules` and let `tests.pkg-config` alone test the build results. CC @sternenseemann Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
14 lines
456 B
Nix
14 lines
456 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 = map
|
|
(moduleName: testers.hasPkgConfigModule { inherit package moduleName; })
|
|
package.meta.pkgConfigModules;
|
|
} ''
|
|
echo "found all of ${toString package.meta.pkgConfigModules}" > "$out"
|
|
''
|