Skip to content

hunk/bun2nix flake evaluation fails on nixpkgs 26.11+ due to x86_64-darwin in supported systems #608

Closed

Description

@nicobrauchtgit

What happened?

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.

Steps to reproduce

  1. Use a flake with:
    inputs = {
      nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
      hunk = {
        url = "github:modem-dev/hunk";
        inputs.nixpkgs.follows = "nixpkgs";
      };
    };
  2. Reference inputs.hunk.packages.${pkgs.stdenv.hostPlatform.system}.hunk in environment.systemPackages (nix-darwin) on an aarch64-darwin host.
  3. Run nix build / darwin-rebuild switch once nixpkgs-unstable has advanced to the 26.11 release that drops x86_64-darwin.
  4. Observe the evaluation error, with a trace through flake-parts/modules/transposition.nix and bun2nix's flake.nix.

Environment

  • nixpkgs: nixpkgs-unstable (26.11-era, dropped x86_64-darwin)
  • nix-darwin host system: aarch64-darwin
  • 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.

Version

0.17.6

Activity

  1. added a commit that references this issue on Jul 28, 2026
    f798ac2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions