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:
knotandspindleare properly isolated in./nix/pkgs/. - Modules: NixOS modules already exist in
./nix/modules/.
Implementation Path#
Since nixpkgs strictly uses buildGoModule instead of gomod2nix:
- Translate the
gomod2nixpackage definitions tobuildGoModule(generatingvendorHash). - Port the existing NixOS modules to
nixpkgsmodule standards. - Keep the local flake for bleeding-edge development, but optionally use the upstreamed
nixpkgsderivations 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)