Monorepo for Tangled tangled.org

Proposal: Upstream knot and spindle packages and modules to nixpkgs #436

open opened by hallaine.com

Motivation#

Currently, knot and spindle are consumed via the repository's flake. Upstreaming them to nixos/nixpkgs would simplify deployment for NixOS users by eliminating the custom flake input requirement and leveraging standard Hydra binary caches.

Context from current flake.nix#

The repository already does the heavy lifting:

  • Derivations: knot and spindle are properly isolated in ./nix/pkgs/.
  • Modules: NixOS modules already exist in ./nix/modules/.

Implementation Path#

Since nixpkgs strictly uses buildGoModule instead of gomod2nix:

  1. Translate the gomod2nix package definitions to buildGoModule (generating vendorHash).
  2. Port the existing NixOS modules to nixpkgs module standards.
  3. Keep the local flake for bleeding-edge development, but optionally use the upstreamed nixpkgs derivations as a base.

Would the maintainers be open to this, and should I open a PR to nixpkgs to start the process?

(I was helped by Gemini to write this)

sign up or login to add to the discussion
Labels

None yet.

area

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:dihjoevrfmqzx3ciiswpuijk/sh.tangled.repo.issue/3mgpe7vvgnm22