From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 15 13:29:31 2019 Received: (at submit) by debbugs.gnu.org; 15 Sep 2019 17:29:31 +0000 Received: from localhost ([127.0.0.1]:48692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9YL4-0007Sp-L2 for submit@debbugs.gnu.org; Sun, 15 Sep 2019 13:29:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:52997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9YL2-0007Sh-0U for submit@debbugs.gnu.org; Sun, 15 Sep 2019 13:29:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57632) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9YL0-0000ND-JJ for guix-patches@gnu.org; Sun, 15 Sep 2019 13:29:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.9 required=5.0 tests=BAYES_50,FREEMAIL_FROM, SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9YKz-0008Oo-AD for guix-patches@gnu.org; Sun, 15 Sep 2019 13:29:26 -0400 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:41036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9YKz-0008OX-2X for guix-patches@gnu.org; Sun, 15 Sep 2019 13:29:25 -0400 Received: by mail-io1-xd34.google.com with SMTP id r26so73355024ioh.8 for ; Sun, 15 Sep 2019 10:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=zMRYrKsaz+aTCAVqD/BzVPgCKX9bhSGJa8SiF4sao0c=; b=HLjM3Sc7lvR5EvtfAwnisURzYfYVR32scUXEtyixTd6/dpSXJ02GsYTqcRxE347fj5 xxmPNCGf97yiaiMjIfUZD9F4ORwq1jw5qHDb1yToTYGy0rPLE9BYdSp5bTl9iQZESX7+ ClkttWUTPUOwUnkJtmbtQiDaMC8QkdYTY6aOKvgDFj5InD4btXdJIJayHBsbrXGI9XFd GZRakBaZ+WLbtr7V+h1fHyr10eMMaXNLLxKvr1tT29FkXiCGEzLxFcnnX613xwAxvYv+ CSSpxQb1cLvODWE8otUtKie0SFC4832g5gcoO9StRj77saDeD9nBLTdeyLdxKdQXZR4l cu4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=zMRYrKsaz+aTCAVqD/BzVPgCKX9bhSGJa8SiF4sao0c=; b=i6X1GhYXOzxCK23dLqKRacFq57IdhNYhbswozYeLo2Oe/uZFkKtFzoGEew+vePSR6o THGuOqBEX10l5UTOqUw8Z7AMVHFnk+CXefW76+COUrX2VgmTXKHB/4zcKYK7RFi2LnJQ jFQngf7zS2a9OUvJ5g2djRfnxIcGMDcnUN24G5kpCCHoL97YK6CJXwh5Kx6BEXZsg36g 8pJXLXkLGFIr4b2DvKaj5OtUgvwOl26pTLBhkGZS9soPJ0UNhkhq0gcwx7RTRn9BTnDV LA/B+5WS/TdPqUzCbUEdSqao5uWK1pA/F8lJg/fyQGBjed15W2Icw0Yj6ss6GOhn5m5q sSyA== X-Gm-Message-State: APjAAAVWHPBWFes3Z8OfDhRggjwg0D+37K/cWK3sC6njMydJnfh0IjlZ wq71+fGFqO/kJcHpwqilNeRf7ZgStzE= X-Google-Smtp-Source: APXvYqwM95CPX/MQ8+1JcSTg7pc0vRTBGyKlaSJaPOSOKfZcmhGAqApyPPEvabiGt7xo8XlJZjh6/Q== X-Received: by 2002:a6b:f311:: with SMTP id m17mr10775489ioh.0.1568568563421; Sun, 15 Sep 2019 10:29:23 -0700 (PDT) Received: from librem (c-73-22-1-166.hsd1.il.comcast.net. [73.22.1.166]) by smtp.gmail.com with ESMTPSA id h3sm24969437iol.73.2019.09.15.10.29.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2019 10:29:22 -0700 (PDT) From: Alex ter Weele X-Google-Original-From: Alex ter Weele To: guix-patches@gnu.org Subject: [PATCH] gnu: Add fennel. Date: Sun, 15 Sep 2019 12:29:21 -0500 Message-ID: <87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d34 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Some limitations: (require "fennelview") =E2=80=93 i.e. requiring the library distributed wit= h the language =E2=80=93 does not work. I spoke with members of freenode's #fenne= l and a FENNEL_PATH could be added. In a future package definition, wrap-program would set that variable. In the meantime, this can be worked around: fennel --add-fennel-path "$(guix build fennel )/share/?.fnl" No native readline support. I have decided not to package https://luarocks.org/modules/peterbillam/readline as fennel 0.2.1's use of readline does not give more functionality than rlwrap. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-fennel.patch Content-Transfer-Encoding: quoted-printable >From 08efecbbd181cc7db0c008b9740bc95ea2f78472 Mon Sep 17 00:00:00 2001 From: Alex ter Weele Date: Sat, 7 Sep 2019 16:18:38 -0500 Subject: [PATCH] gnu: Add fennel. * gnu/packages/fennel.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add fennel.scm. --- gnu/local.mk | 1 + gnu/packages/fennel.scm | 62 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 gnu/packages/fennel.scm diff --git a/gnu/local.mk b/gnu/local.mk index b7a5ef825b..84bfc8df2c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -176,6 +176,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/erlang.scm \ %D%/packages/fabric-management.scm \ %D%/packages/fcitx.scm \ + %D%/packages/fennel.scm \ %D%/packages/figlet.scm \ %D%/packages/file.scm \ %D%/packages/file-systems.scm \ diff --git a/gnu/packages/fennel.scm b/gnu/packages/fennel.scm new file mode 100644 index 0000000000..a5c8ba756d --- /dev/null +++ b/gnu/packages/fennel.scm @@ -0,0 +1,62 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2019 Alex ter Weele + +(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))) --=20 2.23.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 22 21:37:58 2019 Received: (at 37411) by debbugs.gnu.org; 23 Sep 2019 01:37:58 +0000 Received: from localhost ([127.0.0.1]:34739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCDIc-0004r4-Fq for submit@debbugs.gnu.org; Sun, 22 Sep 2019 21:37:58 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:37960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCDIa-0004qm-3s for 37411@debbugs.gnu.org; Sun, 22 Sep 2019 21:37:56 -0400 Received: by mail-io1-f68.google.com with SMTP id u8so8284882iom.5 for <37411@debbugs.gnu.org>; Sun, 22 Sep 2019 18:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=K1sJ7FqzoapIbZdrCnY14S28oRSDaZ9oqnkymaTewq0=; b=PGtRbJkm2kVBOysoSmk9eGP4dA0dVLUwdY7VRnxfBD3MXt2ehBGn4082TrhSaMfyl8 Ry5Y3ighrTL+P6F3YyDBaDHR+XD7zJfh1I0aQjxoBYbaiQj1fIcYo5xjfDFMbL7mXkd6 9uBhKNAUGssHSIJ8EQ1+8BZ0aT6cJHnidf2hmFNeBvQFqLME5pLJQVzRc+A14EiO84Gh jMCE9A1ht+ZDgOFnC/nr4A4cZLhwyIWNvkHKhHo7e2Qe0Ratb3RNXr9BoYP/yVrcwlC5 xNFy9ZcXTGrQeMkLt0aEWTXI3y6ESr+fQnfE3z9WVFne/nIY0QPc9yJzkqcKOKI+bupO 635A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=K1sJ7FqzoapIbZdrCnY14S28oRSDaZ9oqnkymaTewq0=; b=f7aVYUo/wBo56xD5//CtkG1CKt7Ar4uLzoZmivZAENbTvkgxd5lNuwTrCJT0gmcBW1 1vMQoDa+IVdw1wN4JsrJ72nqd5r1qs75Pol9uH9ezELkwQq9mT6oKFYJed9jaSqdlVYz 9lwDufOh0H/qVnrtWe/DFY8BjIYKYQ/oLVo13zgnwOTAyAbFYngmOKsomOfU5UbMVfny QmPxl2/GbtuT7hAJfEPLCFY3ZjJSLmIdmQRBiKYzOYXZv5gBrRHnhna+331uw3o7hBy9 gs/LZfElbVePLv3KDS6K9SOY3xj2mzbDnEhTPRumU6QjTtQuYGU9BJaYd7kq+E7bBJ1i otHQ== X-Gm-Message-State: APjAAAWtff4mea0oyGhmRrlKj41i/ivID4iZyHN4fToYjlrDM7XWxrc0 FbHx5jE1K4IzN4tJUdQ+GHvmKMHR7Oo= X-Google-Smtp-Source: APXvYqzJQtyXW6FLZGZHdUu/quBgNdBZPJu7xTyWEd1tc1JyNaQzolhAeinWeixWpI98q/yXB9Cp9g== X-Received: by 2002:a6b:c7c2:: with SMTP id x185mr20589797iof.224.1569202668737; Sun, 22 Sep 2019 18:37:48 -0700 (PDT) Received: from librem (c-73-22-1-166.hsd1.il.comcast.net. [73.22.1.166]) by smtp.gmail.com with ESMTPSA id g4sm28624433iof.56.2019.09.22.18.37.47 for <37411@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2019 18:37:47 -0700 (PDT) From: Alex ter Weele X-Google-Original-From: Alex ter Weele To: 37411@debbugs.gnu.org Subject: Re: [bug#37411] [PATCH] gnu: Add fennel. References: <87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> Date: Sun, 22 Sep 2019 20:37:46 -0500 In-Reply-To: <87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> (Alex ter Weele's message of "Sun, 15 Sep 2019 12:29:21 -0500") Message-ID: <874l13ztat.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37411 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain fennel 0.3.0 just released. Below is an updated patch. The new release includes FENNEL_PATH, which is now populated by the package definition, so (require "fennelview") now works, addressing a shortcoming of the previous patch. The new release also includes completion via readline, which is not supported in this package definition. For that reason, I would consider this patch WIP. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-fennel.patch Content-Transfer-Encoding: quoted-printable >From 5156cfff4e0e9c8b7223213ab28c891c97641e6c Mon Sep 17 00:00:00 2001 From: Alex ter Weele Date: Sat, 7 Sep 2019 16:18:38 -0500 Subject: [PATCH] gnu: Add fennel. * gnu/packages/fennel.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add fennel.scm. --- gnu/local.mk | 1 + gnu/packages/fennel.scm | 63 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 gnu/packages/fennel.scm diff --git a/gnu/local.mk b/gnu/local.mk index b7a5ef825b..84bfc8df2c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -176,6 +176,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/packages/erlang.scm \ %D%/packages/fabric-management.scm \ %D%/packages/fcitx.scm \ + %D%/packages/fennel.scm \ %D%/packages/figlet.scm \ %D%/packages/file.scm \ %D%/packages/file-systems.scm \ diff --git a/gnu/packages/fennel.scm b/gnu/packages/fennel.scm new file mode 100644 index 0000000000..0bce77fa66 --- /dev/null +++ b/gnu/packages/fennel.scm @@ -0,0 +1,63 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2019 Alex ter Weele + +(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.3.0") + (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 + "1d5kzgb9l2gdya1jqvp4ni03rd8v270fbhy5wxkjbhr9xf2xb14k")))) + (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"))) + `("FENNEL_PATH" ";" prefix (,(string-append data "?.fnl")= ))))))))) + (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))) --=20 2.23.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 24 07:34:28 2019 Received: (at 37411) by debbugs.gnu.org; 24 Sep 2019 11:34:28 +0000 Received: from localhost ([127.0.0.1]:37826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCj5Q-0000lF-7D for submit@debbugs.gnu.org; Tue, 24 Sep 2019 07:34:28 -0400 Received: from rezeros.cc ([45.76.207.221]:47866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCj5N-0000l0-5t for 37411@debbugs.gnu.org; Tue, 24 Sep 2019 07:34:27 -0400 Received: from localhost (2409:8a62:375:9a90:47e9:b146:883c:7663 [IPv6:2409:8a62:375:9a90:47e9:b146:883c:7663]) by rezeros.cc (OpenSMTPD) with ESMTPSA id 9e1fbfb8 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 24 Sep 2019 11:34:17 +0000 (UTC) Received: from gift (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 243f27f2; Tue, 24 Sep 2019 11:34:04 +0000 (UTC) From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) To: Alex ter Weele Subject: Re: [bug#37411] [PATCH] gnu: Add fennel. References: <87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <874l13ztat.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> Date: Tue, 24 Sep 2019 19:34:04 +0800 In-Reply-To: <874l13ztat.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> (Alex ter Weele's message of "Sun, 22 Sep 2019 20:37:46 -0500") Message-ID: <87zhiu3p3n.fsf@member.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37411 Cc: 37411@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alex ter Weele writes: > fennel 0.3.0 just released. Below is an updated patch. The new release > includes FENNEL_PATH, which is now populated by the package > definition, so (require "fennelview") now works, addressing a > shortcoming of the previous patch. The new release also includes > completion via readline, which is not supported in this package > definition. For that reason, I would consider this patch WIP. > We can also add a comment for the lack of readline, and go ahead :-) >>>From 5156cfff4e0e9c8b7223213ab28c891c97641e6c Mon Sep 17 00:00:00 2001 > From: Alex ter Weele > Date: Sat, 7 Sep 2019 16:18:38 -0500 > Subject: [PATCH] gnu: Add fennel. > > * gnu/packages/fennel.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add fennel.scm. > --- > gnu/local.mk | 1 + > gnu/packages/fennel.scm | 63 +++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 64 insertions(+) > create mode 100644 gnu/packages/fennel.scm > > diff --git a/gnu/local.mk b/gnu/local.mk > index b7a5ef825b..84bfc8df2c 100644 > --- a/gnu/local.mk > +++ b/gnu/local.mk > @@ -176,6 +176,7 @@ GNU_SYSTEM_MODULES =3D \ > %D%/packages/erlang.scm \ > %D%/packages/fabric-management.scm \ > %D%/packages/fcitx.scm \ > + %D%/packages/fennel.scm \ > %D%/packages/figlet.scm \ > %D%/packages/file.scm \ > %D%/packages/file-systems.scm \ > diff --git a/gnu/packages/fennel.scm b/gnu/packages/fennel.scm > new file mode 100644 > index 0000000000..0bce77fa66 > --- /dev/null > +++ b/gnu/packages/fennel.scm > @@ -0,0 +1,63 @@ > +;;; GNU Guix --- Functional package management for GNU > +;;; Copyright =C2=A9 2019 Alex ter Weele > + > +(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.3.0") > + (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 > + "1d5kzgb9l2gdya1jqvp4ni03rd8v270fbhy5wxkjbhr9xf2xb14k"))= )) > + (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"))) > + `("FENNEL_PATH" ";" prefix (,(string-append data "?.fnl= ")))))))))) Look at its source code, I think it should be installed like this: fennel -> ${out}/bin/fennel fennel.1 -> ${out}/share/man/man1/fennel.1 fennel.lua -> ${out}/share/lua/${lua-version}/fennel.lua fennelview.fnl -> ${out}/share/fennel/fennelview.fnl We may also pick some md files into ${out}/share/doc/fennel, and drop other files... What do you think? > + (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 synta= x and > +macro system. > + > + * Full Lua compatibility: Easily call any Lua function or library fr= om > +Fennel and vice-versa. > + > + * Zero overhead: Compiled code should be just as or more efficient t= han > +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 interact= ive > +development. > + > +Anywhere you can run Lua code, you can run Fennel code.") > + (license license:x11))) I think its license should be 'expat', 'x11' has an extra paragraph talking about "X Consortium": Otherwise, look good to me, thank you! From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 01 17:17:32 2019 Received: (at 37411) by debbugs.gnu.org; 1 Oct 2019 21:17:32 +0000 Received: from localhost ([127.0.0.1]:35000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFPWV-0006cR-Vb for submit@debbugs.gnu.org; Tue, 01 Oct 2019 17:17:32 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:55178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iFPWU-0006cH-4E for 37411@debbugs.gnu.org; Tue, 01 Oct 2019 17:17:30 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 81EFFC1217; Tue, 1 Oct 2019 23:17:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MW03iH4-GlF6; Tue, 1 Oct 2019 23:17:27 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9B3EFC1215; Tue, 1 Oct 2019 23:17:27 +0200 (CEST) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Alex ter Weele Subject: Re: [bug#37411] [PATCH] gnu: Add fennel. References: <87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <874l13ztat.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> Date: Tue, 01 Oct 2019 23:17:26 +0200 In-Reply-To: <874l13ztat.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> (Alex ter Weele's message of "Sun, 22 Sep 2019 20:37:46 -0500") Message-ID: <87v9t8jhcp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 37411 Cc: 37411@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Alex, Alex ter Weele skribis: >>>From 5156cfff4e0e9c8b7223213ab28c891c97641e6c Mon Sep 17 00:00:00 2001 > From: Alex ter Weele > Date: Sat, 7 Sep 2019 16:18:38 -0500 > Subject: [PATCH] gnu: Add fennel. > > * gnu/packages/fennel.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add fennel.scm. Some comments to complement what =E5=AE=8B=E6=96=87=E6=AD=A6 wrote earlier. > +++ b/gnu/packages/fennel.scm > @@ -0,0 +1,63 @@ > +;;; GNU Guix --- Functional package management for GNU > +;;; Copyright =C2=A9 2019 Alex ter Weele > + Please add a complete header as in the other files. > + (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"))) > + `("FENNEL_PATH" ";" prefix (,(string-append data "?.fnl= ")))))))))) Could you add #t at the end of the phase? > + (home-page "https://fennel-lang.org/") > + (synopsis "Lua lisp language") Maybe =E2=80=9CLisp-like programming language embedded in Lua=E2=80=9D? > + (description "Fennel is a programming language that brings together = the > +speed, simplicity, and reach of Lua with the flexibility of a lisp synta= x and > +macro system. > + > + * Full Lua compatibility: Easily call any Lua function or library fr= om > +Fennel and vice-versa. > + > + * Zero overhead: Compiled code should be just as or more efficient t= han > +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 interact= ive > +development. > + > +Anywhere you can run Lua code, you can run Fennel code.") Please use @itemize and @item for the bullet list. Could you send an updated patch? Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 19 04:39:49 2019 Received: (at 37411) by debbugs.gnu.org; 19 Nov 2019 09:39:49 +0000 Received: from localhost ([127.0.0.1]:46596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWzz6-0005Ri-SA for submit@debbugs.gnu.org; Tue, 19 Nov 2019 04:39:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWzyx-0005RP-LP for 37411@debbugs.gnu.org; Tue, 19 Nov 2019 04:39:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iWzys-0007q5-Fz; Tue, 19 Nov 2019 04:39:30 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=56576 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iWzyr-0004PQ-Km; Tue, 19 Nov 2019 04:39:29 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Alex ter Weele Subject: Re: [bug#37411] [PATCH] gnu: Add fennel. References: <87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <874l13ztat.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <87v9t8jhcp.fsf@gnu.org> Date: Tue, 19 Nov 2019 10:39:28 +0100 In-Reply-To: <87v9t8jhcp.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 01 Oct 2019 23:17:26 +0200") Message-ID: <87ftikryr3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37411 Cc: 37411@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Alex, Did you have a chance to look into it? (See .) Thanks in advance, Ludo=E2=80=99. Ludovic Court=C3=A8s skribis: > Hi Alex, > > Alex ter Weele skribis: > >>>>>From 5156cfff4e0e9c8b7223213ab28c891c97641e6c Mon Sep 17 00:00:00 2001 >> From: Alex ter Weele >> Date: Sat, 7 Sep 2019 16:18:38 -0500 >> Subject: [PATCH] gnu: Add fennel. >> >> * gnu/packages/fennel.scm: New file. >> * gnu/local.mk (GNU_SYSTEM_MODULES): Add fennel.scm. > > Some comments to complement what =E5=AE=8B=E6=96=87=E6=AD=A6 wrote earlie= r. > >> +++ b/gnu/packages/fennel.scm >> @@ -0,0 +1,63 @@ >> +;;; GNU Guix --- Functional package management for GNU >> +;;; Copyright =C2=A9 2019 Alex ter Weele >> + > > Please add a complete header as in the other files. > >> + (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") dat= a) >> + (install-file "fennel" bin) >> + (wrap-program (string-append bin "fennel") >> + `("LUA_PATH" ";" prefix (,(string-append data "?.lua")= )) >> + `("FENNEL_PATH" ";" prefix (,(string-append data "?.fn= l")))))))))) > > Could you add #t at the end of the phase? > >> + (home-page "https://fennel-lang.org/") >> + (synopsis "Lua lisp language") > > Maybe =E2=80=9CLisp-like programming language embedded in Lua=E2=80=9D? > >> + (description "Fennel is a programming language that brings together= the >> +speed, simplicity, and reach of Lua with the flexibility of a lisp synt= ax and >> +macro system. >> + >> + * Full Lua compatibility: Easily call any Lua function or library f= rom >> +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 dependenc= y on >> +Fennel. >> + >> + * Embeddable: Fennel is a one-file library as well as an executable. >> +Embed it in other programs to support runtime extensibility and interac= tive >> +development. >> + >> +Anywhere you can run Lua code, you can run Fennel code.") > > Please use @itemize and @item for the bullet list. > > Could you send an updated patch? > > Thanks! > > Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 19 08:51:18 2019 Received: (at 37411) by debbugs.gnu.org; 19 Nov 2019 13:51:18 +0000 Received: from localhost ([127.0.0.1]:46786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iX3uY-0002cW-Dz for submit@debbugs.gnu.org; Tue, 19 Nov 2019 08:51:18 -0500 Received: from mail-yw1-f50.google.com ([209.85.161.50]:41033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iX3uV-0002cG-4G for 37411@debbugs.gnu.org; Tue, 19 Nov 2019 08:51:17 -0500 Received: by mail-yw1-f50.google.com with SMTP id j190so7281431ywf.8 for <37411@debbugs.gnu.org>; Tue, 19 Nov 2019 05:51:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=AnoApfZnrbgaOi/WwmI2kFLbXYSvHfL57WAYZQ0Jg2g=; b=WuxfuLRDFa54yKvUxhFTdN2qlK9YXF0aZpVO/Pi5//Fs5cGvOrLv7L9IXDwyL01JXe k8ZtoTrKL2Lh5pc7JTNu3B87YxD7/fPzattrRsqcMzkJz/6DThM78h48cfx8fMGrMro7 obWDXguIq8sfTGRR45bVk7rhWwyoqgsfe6Vx1gkGejDwk1iA0ZP8Xr0sy/dgvMFBwGyK kTxwJfRZ8ozZ512zu87QqRsL4wU5zFn+dQdSQnYohYt3FfYwsqUA8hLRWI3yEJ15Xubq CFTE5U/0q5Dmdm9YV1FWri4isV/2BCpC3tiX6a4y5kSrIYKSqjheUxmvshK/xt6u2ghX IIFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=AnoApfZnrbgaOi/WwmI2kFLbXYSvHfL57WAYZQ0Jg2g=; b=F079+jVfww1K9P0fmA1sErTduDzpXc28KS8rTuMFnuY8x1K9OxG6cbjlfwQpVpWPOs nC4NjrNNQKFRVZ/U6o87YQU7hR4PDm5gIjfGDo66XZHEyW1ssW+KK62m8eUuNDOdQdq8 UMHBst0Cz05wxudqarTz0LIa/YzCaeRbZvgg0L2Q9Nf6nvtdxZiHYmzjUeR3ns1jw5sU hJs/wPsGatiJXMqCoeewC5j+p0fNR6vbVmk8NiVg9AY0TmWs8Ys5MaAKcAW2LLBePXkg LOut1CVIB95vQuezDhK+UXiTfsM8aGTFV2g/1wCkHkc0nADT06WFG9Ad7ydenDTiKNja Sd8Q== X-Gm-Message-State: APjAAAXOKv3i5t8ar+eXY2+POy3a3KJpd7ieUB7A2uQVYnkVvePWLAV5 poze64TetN8d5KTRVx1sSZT9ymAE X-Google-Smtp-Source: APXvYqz2i+E0XJDRq8D2qaX5NB3SOSdb6e6Kf/7Nr3HPAD9hAe/oSRb4sga7tN2WBUMrXrghFKsWZA== X-Received: by 2002:a81:ef14:: with SMTP id o20mr24785435ywm.68.1574171469050; Tue, 19 Nov 2019 05:51:09 -0800 (PST) Received: from librem (c-73-22-1-166.hsd1.il.comcast.net. [73.22.1.166]) by smtp.gmail.com with ESMTPSA id v5sm10077689ywi.95.2019.11.19.05.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 05:51:07 -0800 (PST) From: Alex ter Weele X-Google-Original-From: Alex ter Weele To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#37411] [PATCH] gnu: Add fennel. References: <87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <874l13ztat.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <87v9t8jhcp.fsf@gnu.org> <87ftikryr3.fsf@gnu.org> Date: Tue, 19 Nov 2019 07:51:06 -0600 In-Reply-To: <87ftikryr3.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 19 Nov 2019 10:39:28 +0100") Message-ID: <87sgmkezzp.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37411 Cc: Alex ter Weele , 37411@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, sorry for the delay, I'm definitely able to make the changes, but unfortunately I haven't gotten around to them. Thanks to both of you for the review comments! I appreciate the eye for detail :) From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 17:31:51 2023 Received: (at 37411-done) by debbugs.gnu.org; 28 May 2023 21:31:51 +0000 Received: from localhost ([127.0.0.1]:54761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3NzT-00039T-2w for submit@debbugs.gnu.org; Sun, 28 May 2023 17:31:51 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:58300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3NzG-000399-QH for 37411-done@debbugs.gnu.org; Sun, 28 May 2023 17:31:49 -0400 From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021100501; t=1685309497; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mEVJk2Zw3TmF9r6vqunU9nhM43NkoQuVPkrsMYf1GAs=; b=ESm7e2dO9b+vN+1OLk2vzzQr0UlziOM8b/r0YeSsbuerHDrgl69dEjxOcl0CEQIO4xI0wB cZG/MWe/Zgsf80gU6KMVgWpS0ASQM5aeTaCjTKSfZbRpAQakib5KC6sJQY4Xdyk6aQaXC4 Vxty/I3CY9ApaLrVGOrurouCtnm7CxU= To: 37411-done@debbugs.gnu.org Subject: Re: bug#37411: [PATCH] gnu: Add fennel. In-Reply-To: <87sgmkezzp.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> (Alex ter Weele's message of "Tue, 19 Nov 2019 07:51:06 -0600") References: <87y2yppixa.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <874l13ztat.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> <87v9t8jhcp.fsf@gnu.org> <87ftikryr3.fsf@gnu.org> <87sgmkezzp.fsf@librem.i-did-not-set--mail-host-address--so-tickle-me> Date: Sun, 28 May 2023 23:31:36 +0200 Message-ID: <87o7m4p2h3.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37411-done Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , Alex ter Weele X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alex ter Weele writes: > Hi, sorry for the delay, I'm definitely able to make the changes, but > unfortunately I haven't gotten around to them. > > Thanks to both of you for the review comments! I appreciate the eye for > detail :) Closing, as fennel@1.3.0 has been available for a good while already. - Jelle From unknown Sat Jun 21 05:20:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 26 Jun 2023 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator