diff options
Diffstat (limited to 'gnu')
| -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 43bcd214388..aa3991dd96e 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) | |||
| 279 | and browser apps (gruid-js).") | 279 | and browser apps (gruid-js).") |
| 280 | (license license:isc))) | 280 | (license license:isc))) |
| 281 | 281 | ||
| 282 | (define-public go-codeberg-org-anaseto-gruid-js | ||
| 283 | (package | ||
| 284 | (name "go-codeberg-org-anaseto-gruid-js") | ||
| 285 | (version "0.2.0") | ||
| 286 | (source | ||
| 287 | (origin | ||
| 288 | (method git-fetch) | ||
| 289 | (uri (git-reference | ||
| 290 | (url "https://codeberg.org/anaseto/gruid-js.git") | ||
| 291 | (commit (string-append "v" version)))) | ||
| 292 | (file-name (git-file-name name version)) | ||
| 293 | (sha256 | ||
| 294 | (base32 "0m42d469djrix9gnhj6jzvq9kaj2av6ndzl9bf17iyagmqsp5d8x")))) | ||
| 295 | (build-system go-build-system) | ||
| 296 | (arguments | ||
| 297 | (list | ||
| 298 | #:skip-build? #t | ||
| 299 | #:import-path "codeberg.org/anaseto/gruid-js" | ||
| 300 | #:phases | ||
| 301 | #~(modify-phases %standard-phases | ||
| 302 | ;; XXX: The final application needs to provide the same environment | ||
| 303 | ;; variables before build to prevent issue like this: imports | ||
| 304 | ;; syscall/js: build constraints exclude all Go files in | ||
| 305 | ;; <...>/syscall/js. | ||
| 306 | (add-before 'check 'pre-check | ||
| 307 | (lambda _ | ||
| 308 | (setenv "GOOS" "js") | ||
| 309 | (setenv "GOARCH" "wasm")))))) | ||
| 310 | (propagated-inputs | ||
| 311 | (list go-codeberg-org-anaseto-gruid)) | ||
| 312 | (home-page "https://codeberg.org/anaseto/gruid-js") | ||
| 313 | (synopsis "Gruid Driver using syscall/js and wasm and HTML5 canvas") | ||
| 314 | (description | ||
| 315 | "Package js provides a Driver for making browser apps using wasm. The | ||
| 316 | user needs to serve using an http server a directory containing the app.wasm | ||
| 317 | file along with an index.html file.") | ||
| 318 | (license license:isc))) | ||
| 319 | |||
| 282 | (define-public go-dario-cat-mergo | 320 | (define-public go-dario-cat-mergo |
| 283 | (package | 321 | (package |
| 284 | (name "go-dario-cat-mergo") | 322 | (name "go-dario-cat-mergo") |
