Add node-jsfxr
modules/cogd/packages/node-xyz.scm unknown status 1
1 | + | ;;; SPDX-FileCopyrightText: 2025 Evgeny Pisemsky <mail@pisemsky.site> | |
2 | + | ;;; | |
3 | + | ;;; SPDX-License-Identifier: GPL-3.0-or-later | |
4 | + | ||
5 | + | (define-module (cogd packages node-xyz)) | |
6 | + | ||
7 | + | (use-modules (guix packages) | |
8 | + | (guix git-download) | |
9 | + | (guix gexp) | |
10 | + | (guix build-system node) | |
11 | + | ((guix licenses) | |
12 | + | #:prefix license:)) | |
13 | + | ||
14 | + | (define-public node-jsfxr | |
15 | + | (let ((commit "b1eef9b4266d7eada7d737205e56ef373cb1c1c4") | |
16 | + | (revision "0")) | |
17 | + | (package | |
18 | + | (name "node-jsfxr") | |
19 | + | (version (git-version "1.2.2" revision commit)) | |
20 | + | (source | |
21 | + | (origin | |
22 | + | (method git-fetch) | |
23 | + | (uri (git-reference | |
24 | + | (url "https://github.com/chr15m/jsfxr") | |
25 | + | (commit commit))) | |
26 | + | (file-name (git-file-name name version)) | |
27 | + | (sha256 | |
28 | + | (base32 "1smqwx6q3dks2iji54lwhhixvgs1pkqc5si71jqylgsvmwy4b76a")))) | |
29 | + | (build-system node-build-system) | |
30 | + | (arguments | |
31 | + | (list | |
32 | + | #:tests? #f | |
33 | + | #:phases | |
34 | + | #~(modify-phases %standard-phases | |
35 | + | (add-after 'patch-dependencies 'delete-dev-dependencies | |
36 | + | (lambda _ | |
37 | + | (modify-json (delete-dependencies '("live-server" "tape")))))))) | |
38 | + | (home-page "https://github.com/chr15m/jsfxr") | |
39 | + | (synopsis "Game sound effects generator") | |
40 | + | (description | |
41 | + | "The jsxfr library can be used to generate game sound effects using a | |
42 | + | 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)))) |