diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-02-15 13:04:20 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-02-15 16:18:09 +0000 |
commit | 014a5fc785f48d2b8a3e9bee1dce2d066c55e259 (patch) | |
tree | 16c64b1e4ce11b3833c35edbb06b91665cb5e2e0 | |
parent | 751b5c5b65413b61681277f2f0fa1bd27138fc66 (diff) | |
download | guix-014a5fc785f48d2b8a3e9bee1dce2d066c55e259.tar.gz guix-014a5fc785f48d2b8a3e9bee1dce2d066c55e259.zip |
gnu: Add go-codeberg-org-anaseto-gruid-js.
* gnu/packages/golang-xyz.scm (go-codeberg-org-anaseto-gruid-js): New variable.
Change-Id: Ia3e93d8642c2b70cd8b2a53f18539a6c303a3051
-rw-r--r-- | gnu/packages/golang-xyz.scm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 43bcd21438..aa3991dd96 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -279,6 +279,44 @@ are drivers for terminal apps (gruid-tcell), native graphical apps (gruid-sdl) and browser apps (gruid-js).") (license license:isc))) +(define-public go-codeberg-org-anaseto-gruid-js + (package + (name "go-codeberg-org-anaseto-gruid-js") + (version "0.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/anaseto/gruid-js.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0m42d469djrix9gnhj6jzvq9kaj2av6ndzl9bf17iyagmqsp5d8x")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "codeberg.org/anaseto/gruid-js" + #:phases + #~(modify-phases %standard-phases + ;; XXX: The final application needs to provide the same environment + ;; variables before build to prevent issue like this: imports + ;; syscall/js: build constraints exclude all Go files in + ;; <...>/syscall/js. + (add-before 'check 'pre-check + (lambda _ + (setenv "GOOS" "js") + (setenv "GOARCH" "wasm")))))) + (propagated-inputs + (list go-codeberg-org-anaseto-gruid)) + (home-page "https://codeberg.org/anaseto/gruid-js") + (synopsis "Gruid Driver using syscall/js and wasm and HTML5 canvas") + (description + "Package js provides a Driver for making browser apps using wasm. The +user needs to serve using an http server a directory containing the app.wasm +file along with an index.html file.") + (license license:isc))) + (define-public go-dario-cat-mergo (package (name "go-dario-cat-mergo") |