WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@andrewgazelka
Copy link
Contributor

Summary

  • Remove flake-utils dependency (use local forAllSystems helper)
  • Remove gomod2nix dependency (use native buildGoModule)
  • Add overlay export for easy consumption
  • Update nixpkgs to latest unstable
  • Disable tests in nix build (require network access in sandbox)

Changes

The old flake used:

  • flake-utils.lib.eachDefaultSystem → replaced with inline forAllSystems
  • gomod2nix + buildGoApplication → replaced with native buildGoModule
  • No overlay → now exports overlays.default

This makes the flake:

  1. Simpler - fewer dependencies, less code
  2. More maintainable - no need to run gomod2nix when deps change
  3. Easier to consume - overlay allows pkgs.sif in downstream flakes

Test plan

  • nix build succeeds on aarch64-darwin
  • nix flake check passes
  • Built binary runs correctly (./result/bin/sif -h)

- Remove flake-utils dependency (use local forAllSystems helper)
- Remove gomod2nix dependency (use native buildGoModule)
- Add overlay export for easy consumption
- Update nixpkgs to latest unstable
- Disable tests in nix build (require network access)
@vmfunc vmfunc merged commit 97de4f8 into vmfunc:main Jan 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants