unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob a5c8ba756d616296dc11add25ad7eab3355b3578 2258 bytes (raw)
name: gnu/packages/fennel.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Alex ter Weele <alex.ter.weele@gmail.com>

(define-module (gnu packages fennel)
  #:use-module (gnu packages lua)
  #:use-module (guix packages)
  #:use-module (guix build-system gnu)
  #:use-module (guix git-download)
  #:use-module ((guix licenses) #:prefix license:))

(define-public fennel
  (package
    (name "fennel")
    (version "0.2.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/bakpakin/Fennel.git")
                    (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1yn2lyfcrsjcx60lxy0xcyl2rfk4r5pydbkcblpikpk6vhr10ws0"))))
    (build-system gnu-build-system)
    (arguments
     `(#:test-target "test"
       #:phases
       (modify-phases %standard-phases
         (delete 'configure)
         (delete 'build)
         (replace 'install
           (lambda _
             (let* ((out (assoc-ref %outputs "out"))
                    (data (string-append out "/share/"))
                    (bin (string-append out "/bin/")))
               (copy-recursively (assoc-ref %build-inputs "source") data)
               (install-file "fennel" bin)
               (wrap-program (string-append bin "fennel")
                 `("LUA_PATH" ":" prefix (,(string-append data "?.lua"))))))))))
    (inputs
     `(("lua" ,lua)))
    (home-page "https://fennel-lang.org/")
    (synopsis "Lua lisp language")
    (description "Fennel is a programming language that brings together the
speed, simplicity, and reach of Lua with the flexibility of a lisp syntax and
macro system.

    * Full Lua compatibility: Easily call any Lua function or library from
Fennel and vice-versa.

    * Zero overhead: Compiled code should be just as or more efficient than
hand-written Lua.

    * Compile-time macros: Ship compiled code with no runtime dependency on
Fennel.

    * Embeddable: Fennel is a one-file library as well as an executable.
Embed it in other programs to support runtime extensibility and interactive
development.

Anywhere you can run Lua code, you can run Fennel code.")
    (license license:x11)))

debug log:

solving a5c8ba756d ...
found a5c8ba756d in https://yhetil.org/guix-patches/87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me/

applying [1/1] https://yhetil.org/guix-patches/87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me/
diff --git a/gnu/packages/fennel.scm b/gnu/packages/fennel.scm
new file mode 100644
index 0000000000..a5c8ba756d

Checking patch gnu/packages/fennel.scm...
Applied patch gnu/packages/fennel.scm cleanly.

index at:
100644 a5c8ba756d616296dc11add25ad7eab3355b3578	gnu/packages/fennel.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).