NixOS / NixOS/cabal2nix

Deal with gcc_s in extra-libraries field

Open
#71 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Haskell
Stars
402
Forks
162
PR merge metrics
No merged PRs in 30d

Description

The bits-extra package has gcc_s in extra-libraries field. What cabal2nix does is put gcc_s as an extra argument and makes extraLibraries = [ gcc_s ];, which doesn't work because such package doesn't exist. I am told that it instead needs to do something with NIX_LDFLAGS="-lgcc_s" and have gcc as a dependency.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how cabal2nix handles Cabal's extra-libraries field and inspect the generated Nix expression for bits-extra. The change is done when gcc_s is represented through NIX_LDFLAGS with gcc supplied as a dependency, rather than as a nonexistent extra library package.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.