cabal-pkg-config-version-hook: Make Cabal aware of pkg-config package versions

[ bsd3, distribution, library ] [ Propose Tags ]

A setup hook for Cabal that determines the compile-time version of a pkg-config package and adds CPP macros and enables flags.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],
Change log
Dependencies base (>=4 && <5), Cabal (>=, lens, process [details]
License BSD-3-Clause
Copyright cabal-pkg-config-version-hook contributors
Author Robert Hensing
Category Distribution
Home page
Uploaded by RobertHensing at 2023-06-27T22:50:11Z
Distributions NixOS:
Downloads 250 total (14 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for cabal-pkg-config-version-hook-

[back to package description]

A Cabal setup hook for pkg-config version info

Cabal doesn't natively give access to version information from pkg-config (yet?). This setup hook gets the version and makes it available via Haskell CPP and C/C++ macros, as well as setting Cabal flags automatically.