|
1 | 1 | ;; SPDX-License-Identifier: MPL-2.0 |
2 | 2 | ;; Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk> |
3 | 3 | ;; |
4 | | -;; Guix package definition for {{PROJECT_NAME}} |
| 4 | +;; Guix package definition for affinescriptiser |
5 | 5 | ;; |
6 | 6 | ;; Usage: |
7 | 7 | ;; guix shell -D -f guix.scm # Enter development shell |
8 | 8 | ;; guix build -f guix.scm # Build package |
9 | 9 | ;; |
10 | | -;; TODO: Replace {{PROJECT_NAME}} and customize inputs for your language/stack. |
| 10 | +;; affinescriptiser is a Rust CLI (cargo build --release). The build phases |
| 11 | +;; below are the RSR scaffold default (install README only); wiring the real |
| 12 | +;; cargo build is tracked separately. |
11 | 13 | ;; See: https://guix.gnu.org/manual/en/html_node/Defining-Packages.html |
12 | 14 |
|
13 | 15 | (use-modules (guix packages) |
|
18 | 20 | (gnu packages base)) |
19 | 21 |
|
20 | 22 | (package |
21 | | - (name "{{PROJECT_NAME}}") |
| 23 | + (name "affinescriptiser") |
22 | 24 | (version "0.1.0") |
23 | 25 | (source (local-file "." "source" |
24 | 26 | #:recursive? #t |
|
28 | 30 | (arguments |
29 | 31 | '(#:phases |
30 | 32 | (modify-phases %standard-phases |
31 | | - ;; TODO: Customize build phases for your project |
32 | | - ;; Examples for common stacks: |
33 | | - ;; |
34 | | - ;; Rust: |
| 33 | + ;; TODO: wire the real Rust build, e.g. |
35 | 34 | ;; (replace 'build (lambda _ (invoke "cargo" "build" "--release"))) |
36 | 35 | ;; (replace 'check (lambda _ (invoke "cargo" "test"))) |
37 | | - ;; |
38 | | - ;; Elixir: |
39 | | - ;; (replace 'build (lambda _ (invoke "mix" "compile"))) |
40 | | - ;; (replace 'check (lambda _ (invoke "mix" "test"))) |
41 | | - ;; |
42 | | - ;; Zig: |
43 | | - ;; (replace 'build (lambda _ (invoke "zig" "build"))) |
44 | | - ;; (replace 'check (lambda _ (invoke "zig" "build" "test"))) |
45 | 36 | (delete 'configure) |
46 | 37 | (delete 'build) |
47 | 38 | (delete 'check) |
|
53 | 44 | (string-append out "/share/doc/README.adoc")))))))) |
54 | 45 | (native-inputs |
55 | 46 | (list |
56 | | - ;; TODO: Add build-time dependencies |
57 | | - ;; Examples: |
58 | | - ;; rust (gnu packages rust) |
59 | | - ;; elixir (gnu packages elixir) |
60 | | - ;; zig (gnu packages zig) |
| 47 | + ;; TODO: add build-time dependencies (Rust toolchain) once the cargo |
| 48 | + ;; build phase above is wired. |
61 | 49 | )) |
62 | 50 | (inputs |
63 | 51 | (list |
64 | | - ;; TODO: Add runtime dependencies |
| 52 | + ;; TODO: add runtime dependencies |
65 | 53 | )) |
66 | | - (home-page "https://github.com/hyperpolymath/{{PROJECT_NAME}}") |
67 | | - (synopsis "{{PROJECT_PURPOSE}}") |
| 54 | + (home-page "https://github.com/hyperpolymath/affinescriptiser") |
| 55 | + (synopsis "Wrap code in affine + dependent types targeting WASM") |
68 | 56 | (description "RSR-compliant project. See README.adoc for details.") |
69 | | - (license (list |
70 | | - ;; MPL-2.0 extends MPL-2.0 |
71 | | - mpl2.0))) |
| 57 | + (license mpl2.0)) |
0 commit comments