You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hunk/bun2nix flake evaluation fails on nixpkgs 26.11+ due to x86_64-darwin in supported systems #608
Consuming hunk as a flake input on nixpkgs-unstable (specifically nixpkgs 26.11+) fails during evaluation with:
error: Nixpkgs 26.11 has dropped support for x86_64-darwin.
The 26.05 stable branch still supports x86_64-darwin, and will
receive security fixes until the end of 2026. ...
This happens even when the consumer only ever accesses the aarch64-darwin output (e.g. inputs.hunk.packages.${pkgs.stdenv.hostPlatform.system}.hunk on Apple Silicon). The failure occurs while flake-parts is evaluating/transposing perSystem outputs across all declared systems, before the consumer's per-system accessor ever narrows the selection down.
hunk flake input: github:modem-dev/hunk (no ref pinned, tracks default branch)
Consumption method: flake input in a nix-darwin environment.systemPackages, exactly as documented in hunk's README ("Install from a flake")
Workaround applied locally
Removed the hunk flake input and its package reference from environment.systemPackages; installed hunk via nix managed Homebrew instance.
Expected behavior
Consuming hunk on an aarch64-darwin (Apple Silicon) host with current nixpkgs-unstable should not require x86_64-darwin to evaluate/build successfully.
Suggested fix
Drop x86_64-darwin (or Intel macOS entirely) from hunk's supportedSystems list, since Nixpkgs itself no longer supports it as of 26.11.
Update/pin bun2nix's systems input away from nix-systems/default (which still includes x86_64-darwin) to a subset that excludes it, or make it configurable via inputs.systems.follows so downstream consumers can restrict it without forking.
Activity
fix(nix): keep flake evaluable on nixpkgs without x86_64-darwin