Add flake.nix for installation on NixOS - #516
Open
mikl wants to merge 4 commits into
Open
Conversation
Author
|
@arnested I've also added an action to auto-update the vendorHash |
The flake no longer built due to version drift. The prePatch used substituteInPlace --replace-fail with the literal "go 1.26.3", but go-version.yml runs `go mod edit -go <latest patch>` on an hourly cron, so every merged Go bump made that string stop matching and --replace-fail turns a non-match into a hard failure. Strip the patch component with a version agnostic sed instead. Switch nixpkgs to https://flakehub.com/f/DeterminateSystems/nixpkgs-weekly/0.1 and drop the versioned Go attributes: buildGo126Module -> buildGoModule and go_1_26 -> go in the devShell. Both versioned attributes still exist in the current nixpkgs, but they are the same class of pin that breaks once nixpkgs drops an old Go version. vendorHash is unchanged; Go 1.26.2 -> 1.26.4 did not affect vendoring. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Add a
flake.nixfile, to make it easy to installldddnson NixOS, as described by Clåde: