haskell / haskell/cabal

Request: a way to specify alternatives in pkgconfig-depends

Open
#4,428 7 comments 0 reactions 0 assignees View on GitHub
Cabal: cmd/build re: pkg-config type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Some packages, specifically Lua, do not have a standard name in for pkg-config. Lua 5.1 could be one of lua51, lua5.1, lua-5.1, or lua. It would be nice to have an "or" feature in pkgconfig-depends so you could specify that as something like:

pkgconfig-depends: lua51 || lua5.1 || lua-5.1 || (lua >= 5.1, lua < 5.2)

The last example in https://autotools.io/pkgconfig/pkg_check_modules.html shows how to accomplish this using autoconf.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.