Improve node-jsfxr package
modules/cogd/packages/node-xyz.scm
| 32 | 32 | #:tests? #f | |
| 33 | 33 | #:phases | |
| 34 | 34 | #~(modify-phases %standard-phases | |
| 35 | + | ;; Install the web interface in a separate output. | |
| 36 | + | (add-after 'unpack 'install-web | |
| 37 | + | (lambda _ | |
| 38 | + | (let ((web (string-append #$output:web "/share/web/jsxfr/"))) | |
| 39 | + | (install-file "index.html" web) | |
| 40 | + | (install-file "riffwave.js" web) | |
| 41 | + | (install-file "sfxr.js" web) | |
| 42 | + | (copy-recursively "jquery" (string-append web "jquery"))))) | |
| 43 | + | ;; Cleanup according to the "files" field in package.json. | |
| 44 | + | (add-after 'install-web 'cleanup | |
| 45 | + | (lambda _ | |
| 46 | + | (delete-file-recursively "jquery") | |
| 47 | + | (for-each delete-file | |
| 48 | + | '(".hgignore" | |
| 49 | + | "CNAME" | |
| 50 | + | "NOTES" | |
| 51 | + | "index.html" | |
| 52 | + | "jsfxr-pro-screenshot.png" | |
| 53 | + | "screenshot.png" | |
| 54 | + | "tests.js")))) | |
| 35 | 55 | (add-after 'patch-dependencies 'delete-dev-dependencies | |
| 36 | 56 | (lambda _ | |
| 37 | 57 | (modify-json (delete-dependencies '("live-server" "tape")))))))) | |
| 58 | + | (outputs (list "out" "web")) | |
| 38 | 59 | (home-page "https://github.com/chr15m/jsfxr") | |
| 39 | 60 | (synopsis "Game sound effects generator") | |
| 40 | 61 | (description | |
| 41 | 62 | "The jsxfr library can be used to generate game sound effects using a | |
| 42 | 63 | preset algorithm or to recreate them from existing sound definitions. | |
| 43 | - | The package also provides a command line utility for creating wav | |
| 44 | - | files from sound definitions.") | |
| 45 | - | (license license:unlicense)))) | |
| 64 | + | This package also provides a command line utility for creating wav | |
| 65 | + | files from sound definitions and a web interface.") | |
| 66 | + | (license (list license:unlicense license:expat))))) |
news.scm unknown status 2
| 1 | - | ;;; SPDX-FileCopyrightText: 2025 Evgeny Pisemsky <mail@pisemsky.site> | |
| 2 | - | ;;; | |
| 3 | - | ;;; SPDX-License-Identifier: GPL-3.0-or-later | |
| 4 | - | ||
| 5 | - | (channel-news | |
| 6 | - | (version 0) | |
| 7 | - | (entry (commit "b7c856b055f878105f28fb43f8a520c9faac7239") | |
| 8 | - | (title (en "Mosquitto service removal")) | |
| 9 | - | (body (en "The mosquitto service have been removed from the channel, as it is now available in guix system.")))) |