diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-02-06 18:01:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 18:01:37 +0000 |
commit | f876e1f1e910b70ce100da7a555dd5262d407960 (patch) | |
tree | b85e1d8f142746d9d7b590187fc27a3b23d3d40c /pkgs/build-support | |
parent | 5b5def96bc51b8ec0611fd69e010906d7c0966d6 (diff) | |
parent | 5e32ae261893eab62d7ddc064cccf37e8eb1fd9a (diff) |
Merge master into staging-next
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/testers/default.nix | 1 | ||||
-rw-r--r-- | pkgs/build-support/testers/testMetaPkgConfig/tester.nix | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/build-support/testers/default.nix b/pkgs/build-support/testers/default.nix index 15694162edde3..542133dd959a3 100644 --- a/pkgs/build-support/testers/default.nix +++ b/pkgs/build-support/testers/default.nix @@ -123,4 +123,5 @@ hasPkgConfigModule = callPackage ./hasPkgConfigModule/tester.nix { }; + testMetaPkgConfig = callPackage ./testMetaPkgConfig/tester.nix { }; } diff --git a/pkgs/build-support/testers/testMetaPkgConfig/tester.nix b/pkgs/build-support/testers/testMetaPkgConfig/tester.nix new file mode 100644 index 0000000000000..bee97ace1409c --- /dev/null +++ b/pkgs/build-support/testers/testMetaPkgConfig/tester.nix @@ -0,0 +1,14 @@ +{ 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" +'' |