Integrate nixpks build - #45
Conversation
|
last track of this is adding maintainer details for submission to nixpkgs. |
|
hi @alexshapalov checking in if there is any other actions on this PR. |
|
Merged — thanks for this, and sorry for the wait. On the maintainer details: those are only needed for the upstream nixpkgs submission, not for the flake living here, so they were never blocking this PR. I will add the handle when we actually submit. One follow-up if you are up for it. Could you make Also nice catch on the |
|
I can pick up the followup issue, kindly create the issue and I will fix it. Also, are you up to submit to nixpks? the package.nix file here suffice for it. though I already have a branch for that on my machine. Let me know what you think. Thanks |
What and why
Checklist
scripts/gate.shpasses (builds HEAD, not just the working tree)EXPLAIN ANALYZE; findings stay deterministic (computed in Go)model.Context/--json/ the store--jsonchange is additive, ormodel.SchemaVersionbumped + schema regenerated (go run ./tools/schemagen)docs/findings/<id>.mdpage + catalog entrynix: flake packaging (go_1_27, v0.8.1) + non-blocking nix CI
Adds nix packaging so
nix build .#pgbot/nix run .#pgbotworks, plus aninformational nix build in CI. Rebased on current main; hashes recomputed for v0.8.1.
Packaging (
flake.nix,package.nix)buildGoModulepinned togo_1_27: nixpkgs-unstable's default go (1.26.x)can't satisfy the module's
go 1.27directiveldflags = -X main.version=→ packaged binary reportspgbot version 0.8.1, notdevnix develop) ships go 1.27.1 + golangci-lintCI (
.github/workflows/ci.yml)nix buildjob withcontinue-on-error: true— vendorHash changes at eachrelease tag, so a stale hash must annotate, never block a PR
Incidental:
scripts/gate.shlocal clone now uses--no-hardlinks— thehardlink step fails on tmpfs
TMPDIR(tmpfs/tmp,nix develop, WSL2). Costis one ~12 MB copy, freed on exit. Also gitignores
/result.Validation
nix build .#pgbot→./result/bin/pgbot --version→pgbot version 0.8.1nix develop -c scripts/gate.shgreen (build, vet, golangci-lint, tests, 4 cross-builds)closes #31