Skip to content

[PR] Nixos packaging - Flake - #133

Merged
Kaszanas merged 3 commits into
devfrom
nixos_packaging
Sep 4, 2026
Merged

[PR] Nixos packaging - Flake#133
Kaszanas merged 3 commits into
devfrom
nixos_packaging

Conversation

@Kaszanas

@Kaszanas Kaszanas commented Sep 4, 2026

Copy link
Copy Markdown
Owner

As the title suggests.

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.
@Kaszanas Kaszanas added this to the 2.2.0 milestone Sep 4, 2026
@Kaszanas Kaszanas self-assigned this Sep 4, 2026
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.
@Kaszanas
Kaszanas merged commit c762972 into dev Sep 4, 2026
5 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant