summaryrefslogtreecommitdiffstats
path: root/doc/languages-frameworks/pkg-config.section.md
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2023-01-30 09:48:53 +0100
committerGitHub <noreply@github.com>2023-01-30 09:48:53 +0100
commit663c41affd45f58c45363fbb440705cadc258ff4 (patch)
tree8b17d44e2aa89ff2369dd667a9499be7ff918a4a /doc/languages-frameworks/pkg-config.section.md
parent28065fed29d92117b9e2a366412d2fc4aac887b1 (diff)
parentd8a217801e21d561e47a91ea60ec086397fc7466 (diff)
Merge pull request #212282 from hercules-ci/pkg-config-packages
defaultPkgConfigPackages: init
Diffstat (limited to 'doc/languages-frameworks/pkg-config.section.md')
-rw-r--r--doc/languages-frameworks/pkg-config.section.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/languages-frameworks/pkg-config.section.md b/doc/languages-frameworks/pkg-config.section.md
new file mode 100644
index 000000000000..ee0a471be3e5
--- /dev/null
+++ b/doc/languages-frameworks/pkg-config.section.md
@@ -0,0 +1,9 @@
+# pkg-config {#sec-pkg-config}
+
+*pkg-config* is a unified interface for declaring and querying built C/C++ libraries.
+
+Nixpkgs provides a couple of facilities for working with this tool.
+
+ - A [setup hook](#setup-hook-pkg-config) bundled with in the `pkg-config` package, to bring a derivation's declared build inputs into the environment.
+ - The [`validatePkgConfig` setup hook](https://nixos.org/manual/nixpkgs/stable/#validatepkgconfig), for packages that provide pkg-config modules.
+ - The `defaultPkgConfigPackages` package set: a set of aliases, named after the modules they provide. This is meant to be used by language-to-nix integrations. Hand-written packages should use the normal Nixpkgs attribute name instead.