summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support/testers/testMetaPkgConfig/tester.nix
blob: 1dd526385738f6ec2e49fe7ce90f1977e48e1650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  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"
  ''