srid / srid/haskell-flake

A flake app to upload to Hackage

Open
#48 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
Nix
Stars
240
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Normally I use cabal sdist followed by cabal upload --publish[^cr] in the nix shell to upload a new release to Hackage.

  • Can this be automated in an universal fashion?
  • If so, would it be useful for this module to provide a flake app to do it all?

Then, something like nix run .#hackage-publish -- <package-name> could be used to build a sdist and publish to Hackage automatically. Though it is not clear which exact interface (CLI arguments, for instance) we want to support.

[^cr]: @locallycompact pointed me to this command.

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 reviewing the documented cabal sdist and cabal upload --publish workflow in the issue, including how it runs in the Nix shell. Decide what universal automation and CLI interface are required for a nix run .#hackage-publish -- <package-name> app, then verify that the chosen workflow builds an sdist and publishes it to Hackage.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system, cli, release
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.