Skip to content

fix: differing hash between nixos and darwin#141

Open
frostplexx wants to merge 5 commits intoInrixia:masterfrom
frostplexx:flake
Open

fix: differing hash between nixos and darwin#141
frostplexx wants to merge 5 commits intoInrixia:masterfrom
frostplexx:flake

Conversation

@frostplexx
Copy link
Contributor

@frostplexx frostplexx commented Feb 17, 2026

Closes #140 which is an issue introduced by my previous PR #138.

@frostplexx frostplexx marked this pull request as ready for review February 17, 2026 13:29
@xaiyadev
Copy link
Contributor

This solution wont work because of the pipeline and nix-update

If you can prove that the pipeline updates both hashes when the pnpm deps hash changes this can go through imo

@frostplexx
Copy link
Contributor Author

Running the CI it seems to replace both hashes with the one for NixOS: frostplexx@e0b76b7. Not sure how to work around this without refactoring the whole nix code.

@xaiyadev
Copy link
Contributor

Hmmm,, might look into nix-update (the tool used in the pipeline) and if they have darwin support of some sort?

It would be really tidious changing the hash for every update manually

@frostplexx
Copy link
Contributor Author

Changing the runner to be "macos-latest" makes it so nix-update uses the hashes for macOS: frostplexx@fdfba97.

I think its possible to maintain two separate injection files: injections.nix that gets updated through a Linux runner using nix-update --flake injection --version=1.12.1-beta and injection-darwin.nix that gets updated on a macOS runner using nix-update --flake injection-darwin --version=1.12.1-beta. This solution isn't all that clean but I don't see another way, at least from looking through the nix-update readme.

@Inrixia
Copy link
Owner

Inrixia commented Feb 17, 2026

Lmk when this is ready to merge. And please resolve conflicts

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.

[BUG] hash mismatch on nix flake

3 participants