Commit 49841b4
Make guix.scm a real, buildable package (#39)
Implements work order
`.claude/tasks/prod-readiness/w2-2-guix-package.md`. Per decision of
record #3, `guix.scm` is made **real (buildable)**, not deleted.
## What changed & why
Before, `guix.scm` was a template stub: `{{PROJECT_PURPOSE}}` synopsis,
empty `native-inputs`/`inputs`, deleted build/check phases, and an
"install" phase that only copied `README.adoc`. That is not a buildable
package, yet governance runs a "Guix primary / Nix fallback policy"
check and the docs claimed reproducible builds.
- **`guix.scm`** — rewritten as a real package for the Julia
application.
- Real metadata: `synopsis`/`description` (Kautz Type 1 neurosymbolic
statistical analysis assistant — Julia computes every value, the LLM
only routes/explains), `home-page` = the GitHub URL, `license` =
`license:mpl2.0` (matches the repo's MPL-2.0).
- `inputs` = `(list bash-minimal julia)`; modules `(gnu packages julia)`
and `(gnu packages bash)` provide them.
- `copy-build-system` with an `#:install-plan` that installs `src/`,
`Project.toml`, `Manifest.toml`, and `README.adoc`, plus an
`install-launcher` phase that writes `bin/statistikles`.
- **Honest build strategy, documented in a header comment (lines
10-37):** Guix builds are network-isolated and not every pinned Julia
dep exists in Guix at the `Manifest.toml` version, so the package does
**not** fake a from-source recompile of the whole dependency graph.
Instead the `check` phase runs a *real, offline* integrity check — it
parses `Project.toml`/`Manifest.toml` with Julia's bundled TOML stdlib
and runs `Pkg.status()` against the pinned project (forced offline via
`JULIA_PKG_OFFLINE=true`). The launcher documents the one-time
`Pkg.instantiate()` into a writable `JULIA_DEPOT_PATH` before first use.
No deleted-phase-pretending-to-build; the limitation is stated in
comments, and upgrading to `julia-build-system` once all deps are in
Guix is noted as future work.
- **`.guix-channel`** — filled the
`{{PROJECT_NAME}}`/`{{AUTHOR}}`/`{{CURRENT_YEAR}}`/`{{AUTHOR_EMAIL}}`
placeholders so channel metadata is consistent with the package and
references no missing directories (checkout-consistency per requirement
#5).
- **`QUICKSTART-MAINTAINER.adoc`** — corrected the now-false claim that
`guix.scm` is non-functional; the container claim is left untouched
(that is the separate w2-3 containers task).
No `{{placeholders}}` remain in `guix.scm` or `.guix-channel` (`grep -nE
'\{\{[A-Z_]+\}\}'` → none).
## Verification run & result
- **Scheme syntax (ran):** `guix` is **not installed** in this
environment, so `guix build -f guix.scm` was **not run**. As the work
order's fallback allows, I validated both Scheme files with **Guile
3.0.10** using a gexp-aware reader that registers Guix's `#~`/`#$`/`#$@`
reader macros, then read every top-level form:
- `guix.scm` — 2 top-level forms, balanced parens, valid S-expressions.
- `.guix-channel` — 1 top-level form, balanced parens, valid
S-expressions.
- **Module/binding cross-check (by careful reading of the Guix
manual):** `copy-build-system`, `#:install-plan`,
`modify-phases`/`add-after`, gexp `file-append`, `local-file` with
`#:recursive?`/`#:select?`, `license:mpl2.0`, and the
`julia`/`bash-minimal` package variables were each confirmed against
documented Guix names.
- **Governance "Guix primary / Nix fallback policy" (criterion #4):**
the reusable check (`hyperpolymath/standards` governance-reusable, job
`package-policy`) passes when a `guix.scm`/`.guix-channel`/`*.scm` file
is present; both exist. This check only runs on `push`/`pull_request` to
`main` — **opening this PR is what first triggers it against the
branch**; see the Checks tab of this PR for the live result.
## Skipped / out of scope
- `guix build -f guix.scm` was **not executed** (guix not installed
here; cannot be claimed).
- No CI job that runs `guix` was added (out of scope; a
reproducible-build CI job is a reasonable follow-up).
- Nix flakes and channel publishing are out of scope.
- The container packaging surface is handled by the separate w2-3 task,
not here.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d41b05e commit 49841b4
3 files changed
Lines changed: 119 additions & 64 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
12 | 38 | | |
13 | 39 | | |
14 | 40 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
19 | 45 | | |
20 | 46 | | |
21 | | - | |
| 47 | + | |
22 | 48 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
28 | 54 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 55 | | |
64 | | - | |
65 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
66 | 106 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
0 commit comments