[PR] Nixos packaging - Flake - #133
Merged
Merged
Conversation
Add flake.nix (buildGoModule package, nix run app, devShell) so the tool can be installed/run via Nix without Docker, a reusable nix_build CI workflow wired into pipeline.yml, and README docs covering both ad-hoc use and adding it to a NixOS/home-manager configuration. vendorHash is a placeholder (lib.fakeHash) until someone with Nix installed runs `nix build` once and fills in the real hash from the mismatch error.
Ran the build in a throwaway nixos/nix Docker container (no persistent Nix install, and left the WSL Docker Desktop distro untouched) to surface the actual vendorHash and confirm the package builds and runs end to end. The default buildGoModule checkPhase runs `go test ./...`, which fails in the Nix sandbox since TestPipelineWrapperMultiple needs fixture data (`make fetch_test_fixtures`) and network access that aren't available there; that suite is already covered separately by CI's e2e_tests.yml, so disable it for packaging with doCheck = false. Also commit the flake.lock generated by the build, and gitignore the result/result-* build-output symlinks nix build leaves behind.
version was left at a placeholder 0.1.0 instead of the actual project version. Set it to 2.1.3 (the latest GitHub release) and note that it needs bumping alongside future release tags, since there's no VERSION file or git-derivable source of truth for it.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
As the title suggests.