depot/third_party/nixpkgs/doc/languages-frameworks/pkg-config.section.md
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

724 B

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 bundled with in the pkg-config package, to bring a derivation's declared build inputs into the environment.
  • The validatePkgConfig setup hook, 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.