summaryrefslogtreecommitdiff
path: root/gnu/packages/javascript.scm
diff options
context:
space:
mode:
authorAshvith Shetty <ashvithshetty0010@zohomail.in>2025-03-28 23:09:58 +0530
committerLudovic Courtès <ludo@gnu.org>2025-04-02 20:50:14 +0200
commitb94cf86a89ef0a6bf7ec2c8e52f64c5107888f55 (patch)
tree7101fe231a1c92fe88b5665b71533b7a2a529a18 /gnu/packages/javascript.scm
parentc71a243d99841a94c234cd07390fde4a0d7ed805 (diff)
gnu: quickjs: Deprecate.
* gnu/packages/javascript.scm (quickjs): Define as deprecated in favor of quickjs-ng. Change-Id: Ia7974a21ccd0c6a89b71300fda7bed86588fb0e2
Diffstat (limited to 'gnu/packages/javascript.scm')
-rw-r--r--gnu/packages/javascript.scm45
1 files changed, 3 insertions, 42 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index 21222f00279..38edc2ff0ab 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -825,48 +825,6 @@ C++ template mechanisms, or worry about marking and unmarking garbage collection
825roots, or wrestle with obscure build systems.") 825roots, or wrestle with obscure build systems.")
826 (license license:isc))) 826 (license license:isc)))
827 827
828(define-public quickjs
829 (package
830 (name "quickjs")
831 (version "2024-01-13")
832 (source (origin
833 (method url-fetch)
834 (uri (string-append "https://bellard.org/quickjs/quickjs-"
835 version ".tar.xz"))
836 (sha256
837 (base32
838 "00rf45l1bx0yhlv11gn3bbyfqw9724c153bc93mlp9dzjpwghjrw"))
839 (snippet
840 #~(begin (use-modules (guix build utils))
841 (for-each delete-file
842 '("doc/quickjs.pdf"
843 "doc/quickjs.html"
844 "doc/jsbignum.pdf"
845 "doc/jsbignum.html"))))))
846 (build-system gnu-build-system)
847 (arguments
848 (list #:make-flags
849 #~(list (string-append "PREFIX=" #$output)
850 #$@(if (or (target-riscv64?)
851 (target-ppc32?))
852 '("LDFLAGS=-latomic")
853 '()))
854 #:phases #~(modify-phases %standard-phases
855 (delete 'configure)
856 (replace 'check
857 (lambda* (#:key tests? #:allow-other-keys)
858 (when tests?
859 (invoke "make" "microbench")))))))
860 (home-page "https://bellard.org/quickjs/")
861 (synopsis "Small embeddable Javascript engine")
862 (description "QuickJS supports the ES2023 specification including modules,
863asynchronous generators, proxies, BigInt, BigDecimal, BigFloat and operator
864overloading. It can compile Javascript sources to executables with no external
865dependency. It includes a command line interpreter with contextual colorization
866implemented in Javascript and a small built-in standard library with C library
867wrappers.")
868 (license license:expat)))
869
870(define-public test262-source 828(define-public test262-source
871 (origin 829 (origin
872 (method git-fetch) 830 (method git-fetch)
@@ -954,6 +912,9 @@ wrappers.")
954 ;; 3-clause BSD license for test262 912 ;; 3-clause BSD license for test262
955 (license (list license:expat license:bsd-3)))) 913 (license (list license:expat license:bsd-3))))
956 914
915(define-public quickjs
916 (deprecated-package "quickjs" quickjs-ng))
917
957(define-public duktape 918(define-public duktape
958 (package 919 (package
959 (name "duktape") 920 (name "duktape")