about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-01-29 09:27:29 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-01-30 00:35:34 +0100
commitb6bec17eb9b8f256151c396282ad76db255fff91 (patch)
tree0094313f2c03a372defbaaebc0a4acf02933a462 /doc
parentf192e96d0771a9c8fa8e8c73e6ef66af56a548f8 (diff)
testers.hasPkgConfigModule: Extract and add tests, docs
Diffstat (limited to 'doc')
-rw-r--r--doc/builders/testers.chapter.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/builders/testers.chapter.md b/doc/builders/testers.chapter.md
index 3d91f096051ee..a0f0f97f9d53f 100644
--- a/doc/builders/testers.chapter.md
+++ b/doc/builders/testers.chapter.md
@@ -1,6 +1,19 @@
 # Testers {#chap-testers}
 This chapter describes several testing builders which are available in the <literal>testers</literal> namespace.
 
+## `hasPkgConfigModule` {#tester-hasPkgConfigModule}
+
+Checks whether a package exposes a certain `pkg-config` module.
+
+Example:
+
+```nix
+passthru.tests.pkg-config = testers.hasPkgConfigModule {
+  package = finalAttrs.finalPackage;
+  moduleName = "libfoo";
+}
+```
+
 ## `testVersion` {#tester-testVersion}
 
 Checks the command output contains the specified version