about summary refs log tree commit diff
path: root/nixpkgs/pkgs/build-support/testers/testMetaPkgConfig/tester.nix
blob: 7892a29e4c28de75bea6ea25681f942bc641174d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{ 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"
''