Improve node-jsfxr package

Evgeny PisemskySat Aug 09 14:45:13+0300 2025

b8fa876

Improve node-jsfxr package

modules/cogd/packages/node-xyz.scm

3232
        #:tests? #f
3333
        #:phases
3434
        #~(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"))))
3555
            (add-after 'patch-dependencies 'delete-dev-dependencies
3656
              (lambda _
3757
                (modify-json (delete-dependencies '("live-server" "tape"))))))))
58+
      (outputs (list "out" "web"))
3859
      (home-page "https://github.com/chr15m/jsfxr")
3960
      (synopsis "Game sound effects generator")
4061
      (description
4162
       "The jsxfr library can be used to generate game sound effects using a
4263
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."))))