mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add janet.
* gnu/packages/lisp.scm (janet): New variable.
This commit is contained in:
parent
3d7917f042
commit
7a858c0c0a
1 changed files with 37 additions and 0 deletions
|
@ -1001,3 +1001,40 @@ including a built-in database engine and a GUI system.")
|
||||||
(package
|
(package
|
||||||
(inherit picolisp32)
|
(inherit picolisp32)
|
||||||
(name "picolisp")))))
|
(name "picolisp")))))
|
||||||
|
|
||||||
|
(define-public janet
|
||||||
|
(package
|
||||||
|
(name "janet")
|
||||||
|
(version "1.12.2")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/janet-lang/janet")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "0if514zdmbjvvrsa9x5yfvg2b14sz53yaka12g3yhwkq8ls3qk0c"))))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:make-flags (list
|
||||||
|
(string-append "DESTDIR=" (assoc-ref %outputs "out"))
|
||||||
|
(string-append "PREFIX=")
|
||||||
|
(string-append "CC=" (assoc-ref %build-inputs "gcc")
|
||||||
|
"/bin/gcc"))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(replace 'check
|
||||||
|
(lambda _
|
||||||
|
(invoke "make" "test"))))))
|
||||||
|
(home-page "https://janet-lang.org/")
|
||||||
|
(synopsis "Functional, imperative and embeddable programming language")
|
||||||
|
(description
|
||||||
|
"Janet is a functional and imperative programming language. It can be
|
||||||
|
used for rapid prototyping, dynamic systems, and other domains where dynamic
|
||||||
|
languages shine. You can also add Janet scripting to an application by
|
||||||
|
embedding a single C file and two headers. It can be easily ported to new
|
||||||
|
platforms. The entire language (core library, interpreter, compiler,
|
||||||
|
assembler, PEG) is less than 1MB.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue