nix: fix broken flake build, drop legacy flake-compat, support non-AVX2 CPUs - #658
Closed
mirdukkkkk wants to merge 1 commit into
Closed
nix: fix broken flake build, drop legacy flake-compat, support non-AVX2 CPUs#658mirdukkkkk wants to merge 1 commit into
mirdukkkkk wants to merge 1 commit into
Conversation
This was referenced Sep 5, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
nix build/nix runare currently broken on main and can't produce a package at all:Cargo.lockhas two git-sourced crates (apple-codesign,isideload) with nooutputHashes.buildRustPackage'scargoLock.lockFilemode requires an explicit hash for any git dependency, since Nix can't derive one on its own. Without it, evaluation fails immediately withNo hash was found while vendoring the git dependencybun.lockis stale againstpackage.json. Several dependency ranges inpackage.json(react, i18next, tauri plugins, etc.) were bumped without regenerating the lockfile, so bun2nix's offline vendored install can't satisfy them and falls back to a network resolve that the Nix sandbox correctly refuses. Regenerated withbun installdefault.nix/shell.nixare legacyflake-compatshims that don't even work in the current flake - they compat into adevShell/shellNixoutput that the flake never defines. They're dead weight that just adds another input to keep in sync for no benefit on a modern Nix installbunversion overlay (before thebun2nixoverlay) pinningbunto1.4.1onx86_64-linux, fetched directly from GitHub releases. nixpkgs currently shipsbun1.3.13, which is built against AVX2 and won't run on older/budget CPUs without a separate baseline build; bun dropped that requirement as of 1.4, so pinning forward is simpler than carrying a baseline variantI've tested these changes in my Nix config, and everything works perfectly fine.