Skip to content

Component-based build support for cabal2nix #603

Description

@TeofilC

I would love to have component-based build support for the nixpkgs haskell infra.
I understand that adding support for this is quite a big change. And I'm hoping to invest some time into implementing it.

Since this is quite a big addition I'm hoping to split it up into some smaller tasks.
The things I can think of are:

  • Add support to cabal2nix to just emit one component
  • Add support to the nixpkgs builder to build just one component. (I think some of this already exists but haven't tested it)
  • Add support for the nixpkgs builder to put tests into passthru.tests rather than have them run as part of a library's checkPhase
  • Add support to cabal2nix to emit all components as different .nix files.
  • Allow splitting out the building of Setup.hs into a separate shared derivation.

I'm thinking of keeping all of these things opt-in to avoid breakage especially while support is only partial.

How does this sound as a vague plan?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions