nh2 / nh2/static-haskell-nix

Patch cabal to pass --static flags to pkg-config

Open
#62 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Nix
Stars
401
Forks
36
PR merge metrics
No merged PRs in 30d

Description

`pkg-config` takes a `--static` flag to output `.a` files for `--libs`. We currently add those manually in `static-haskell-nix`.

Instead, we should teach cabal to pass it, given that `.cabal` files can specify pkg-config dependencies.

Hopefully we can then get rid of pkg-config related overrides in `static-haskell-nix` and fundamentally fix issues like #57, so that Haskell libraries "remember" which static system libraries they need.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.