-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cabal-pkg-config-version-hook should use Cabal Program API instead of hard coding pkg-config binary name #447
Comments
#448 should help with that. |
I will leave #448 unmerged state until it's validated. I haven't quite succeeded at that. |
Using domenkozar/nixpkgs@369b2ec and running
|
Possibly related: https://gitlab.haskell.org/ghc/ghc/-/issues/17446 |
Skimming that GHC issue it seems like it's unlikely this will ever work, since we have to use the RTS linker in Dodging the RTS linker could be done, though, if |
Eliminating TemplateHaskell amounts to rewriting the library. I'd support that as part of the effort to improve the nix bindings situation upstream. It could be layered as follows and be contributed to
The C functions could evolve into a stable interface that's shared between bindings, such as the new python bindings, but also the existing perl bindings. Nix Team's thoughts on official python bindings: |
In nixpkgs,
pkg-config
is prefixed in the cross case, so this would fail miserably:https://github.com/hercules-ci/hercules-ci-agent/blob/master/cabal-pkg-config-version-hook/src/Distribution/PkgConfigVersionHook.hs#L154
We do already provide the correct
pkg-config
executable to Cabal via the--with-pkg-config
flag, so it should be easily possible to obtain the correct program.The text was updated successfully, but these errors were encountered: