From 987cc18b5deeb1c676cf0db33c05733d5b7e821e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Jun 2026 13:48:40 +0000 Subject: [PATCH] chore(guix): substitute leftover template placeholders; fix licence comment The RSR-scaffold guix files in two sub-projects still carried unsubstituted {{...}} template tokens and a nonsense "MPL-2.0 extends MPL-2.0" licence comment. - affinescriptiser/{guix.scm,.guix-channel}: substitute {{PROJECT_NAME}} -> affinescriptiser, {{OWNER}} -> hyperpolymath, {{AUTHOR}}/{{AUTHOR_EMAIL}}/ {{CURRENT_YEAR}} -> the canonical author/2026; real synopsis ("Wrap code in affine + dependent types targeting WASM"); note it is a Rust CLI. - affinescript-vite/{guix.scm,.guix-channel}: substitute {{CURRENT_YEAR}} -> 2026 and the canonical author; real synopsis (Vite plugin for AffineScript). - Both guix.scm: replace `(license (list ;; MPL-2.0 extends MPL-2.0 mpl2.0))` with the idiomatic single `(license mpl2.0)`. Paren-balanced; no guix toolchain in this environment to run `guix build`. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_015wqBHniW8sHDCqCoEvBe9n --- affinescript-vite/.guix-channel | 2 +- affinescript-vite/guix.scm | 8 +++---- affinescriptiser/.guix-channel | 10 ++++----- affinescriptiser/guix.scm | 38 +++++++++++---------------------- 4 files changed, 21 insertions(+), 37 deletions(-) diff --git a/affinescript-vite/.guix-channel b/affinescript-vite/.guix-channel index dee209a4..b5f1fb21 100644 --- a/affinescript-vite/.guix-channel +++ b/affinescript-vite/.guix-channel @@ -1,5 +1,5 @@ ;; SPDX-License-Identifier: MPL-2.0 -;; Copyright (c) {{CURRENT_YEAR}} hyperpolymath (hyperpolymath) +;; Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) ;; ;; Guix channel definition for AffineScript-Vite ;; diff --git a/affinescript-vite/guix.scm b/affinescript-vite/guix.scm index 86b76248..b602d5bd 100644 --- a/affinescript-vite/guix.scm +++ b/affinescript-vite/guix.scm @@ -1,5 +1,5 @@ ;; SPDX-License-Identifier: MPL-2.0 -;; Copyright (c) {{CURRENT_YEAR}} hyperpolymath (hyperpolymath) +;; Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) ;; ;; Guix package definition for AffineScript-Vite ;; @@ -64,8 +64,6 @@ ;; TODO: Add runtime dependencies )) (home-page "https://github.com/hyperpolymath/AffineScript-Vite") - (synopsis "{{PROJECT_PURPOSE}}") + (synopsis "Official Vite plugin for AffineScript — compiles .as/.affine to WASM + JS with HMR") (description "RSR-compliant project. See README.adoc for details.") - (license (list - ;; MPL-2.0 extends MPL-2.0 - mpl2.0))) + (license mpl2.0)) diff --git a/affinescriptiser/.guix-channel b/affinescriptiser/.guix-channel index f9bdf68f..2dbf3f79 100644 --- a/affinescriptiser/.guix-channel +++ b/affinescriptiser/.guix-channel @@ -1,20 +1,20 @@ ;; SPDX-License-Identifier: MPL-2.0 -;; Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +;; Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) ;; -;; Guix channel definition for {{PROJECT_NAME}} +;; Guix channel definition for affinescriptiser ;; ;; To use this channel, add to ~/.config/guix/channels.scm: ;; ;; (channel -;; (name '{{PROJECT_NAME}}) -;; (url "https://github.com/{{OWNER}}/{{PROJECT_NAME}}") +;; (name 'affinescriptiser) +;; (url "https://github.com/hyperpolymath/affinescriptiser") ;; (branch "main")) ;; ;; Then: guix pull (channel (version 0) - (url "https://github.com/{{OWNER}}/{{PROJECT_NAME}}") + (url "https://github.com/hyperpolymath/affinescriptiser") (dependencies (channel (name 'guix) diff --git a/affinescriptiser/guix.scm b/affinescriptiser/guix.scm index cdf73ef0..9955ebfe 100644 --- a/affinescriptiser/guix.scm +++ b/affinescriptiser/guix.scm @@ -1,13 +1,15 @@ ;; SPDX-License-Identifier: MPL-2.0 ;; Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) ;; -;; Guix package definition for {{PROJECT_NAME}} +;; Guix package definition for affinescriptiser ;; ;; Usage: ;; guix shell -D -f guix.scm # Enter development shell ;; guix build -f guix.scm # Build package ;; -;; TODO: Replace {{PROJECT_NAME}} and customize inputs for your language/stack. +;; affinescriptiser is a Rust CLI (cargo build --release). The build phases +;; below are the RSR scaffold default (install README only); wiring the real +;; cargo build is tracked separately. ;; See: https://guix.gnu.org/manual/en/html_node/Defining-Packages.html (use-modules (guix packages) @@ -18,7 +20,7 @@ (gnu packages base)) (package - (name "{{PROJECT_NAME}}") + (name "affinescriptiser") (version "0.1.0") (source (local-file "." "source" #:recursive? #t @@ -28,20 +30,9 @@ (arguments '(#:phases (modify-phases %standard-phases - ;; TODO: Customize build phases for your project - ;; Examples for common stacks: - ;; - ;; Rust: + ;; TODO: wire the real Rust build, e.g. ;; (replace 'build (lambda _ (invoke "cargo" "build" "--release"))) ;; (replace 'check (lambda _ (invoke "cargo" "test"))) - ;; - ;; Elixir: - ;; (replace 'build (lambda _ (invoke "mix" "compile"))) - ;; (replace 'check (lambda _ (invoke "mix" "test"))) - ;; - ;; Zig: - ;; (replace 'build (lambda _ (invoke "zig" "build"))) - ;; (replace 'check (lambda _ (invoke "zig" "build" "test"))) (delete 'configure) (delete 'build) (delete 'check) @@ -53,19 +44,14 @@ (string-append out "/share/doc/README.adoc")))))))) (native-inputs (list - ;; TODO: Add build-time dependencies - ;; Examples: - ;; rust (gnu packages rust) - ;; elixir (gnu packages elixir) - ;; zig (gnu packages zig) + ;; TODO: add build-time dependencies (Rust toolchain) once the cargo + ;; build phase above is wired. )) (inputs (list - ;; TODO: Add runtime dependencies + ;; TODO: add runtime dependencies )) - (home-page "https://github.com/hyperpolymath/{{PROJECT_NAME}}") - (synopsis "{{PROJECT_PURPOSE}}") + (home-page "https://github.com/hyperpolymath/affinescriptiser") + (synopsis "Wrap code in affine + dependent types targeting WASM") (description "RSR-compliant project. See README.adoc for details.") - (license (list - ;; MPL-2.0 extends MPL-2.0 - mpl2.0))) + (license mpl2.0))