* [bug#58749] [PATCH] gnu: Add guilescript.
@ 2022-10-23 20:30 Evgeny Pisemsky
2022-11-05 10:52 ` bug#58749: " Christopher Baines
0 siblings, 1 reply; 2+ messages in thread
From: Evgeny Pisemsky @ 2022-10-23 20:30 UTC (permalink / raw)
To: 58749
[-- Attachment #1: 0001-gnu-Add-guilescript.patch --]
[-- Type: text/x-patch, Size: 3430 bytes --]
From a39aa047301867ff06b957a33a0d8af802c24a4d Mon Sep 17 00:00:00 2001
From: Evgeny Pisemsky <evgeny@pisemsky.com>
Date: Sun, 23 Oct 2022 23:15:16 +0300
Subject: [PATCH] gnu: Add guilescript.
* gnu/packages/guile-xyz.scm (guilescript): New variable.
---
gnu/packages/guile-xyz.scm | 45 ++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 209ba694d7..2e7b5431ed 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -44,6 +44,7 @@
;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
;;; Copyright © 2022 Taiju HIGASHI <higashi@taiju.info>
;;; Copyright © 2022 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2022 Evgeny Pisemsky <evgeny@pisemsky.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -264,6 +265,50 @@ (define-public artanis
(home-page "https://www.gnu.org/software/artanis/")
(license (list license:gpl3+ license:lgpl3+)))) ;dual license
+(define-public guilescript
+ (package
+ (name "guilescript")
+ (version "0.2.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aconchillo/guilescript")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "15bvgklv77kvkl8dizriqblfir6rid5nm79ymi3m2fvpd7wf77qy"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:make-flags '("GUILE_AUTO_COMPILE=0")
+ #:modules (((guix build guile-build-system)
+ #:select (target-guile-effective-version))
+ ,@%gnu-build-system-modules)
+ #:imported-modules ((guix build guile-build-system)
+ ,@%gnu-build-system-modules)
+ #:phases (modify-phases %standard-phases
+ (add-after 'install 'wrap-guilescript
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin"))
+ (version (target-guile-effective-version))
+ (scm (string-append "/share/guile/site/" version))
+ (go (string-append "/lib/guile/" version "/site-ccache")))
+ (wrap-program (string-append bin "/guilescript")
+ `("GUILE_LOAD_PATH" prefix
+ (,(string-append out scm)))
+ `("GUILE_LOAD_COMPILED_PATH" prefix
+ (,(string-append out go)))))
+ #t)))))
+ (native-inputs (list autoconf automake pkg-config))
+ (inputs (list guile-3.0 bash-minimal))
+ (home-page "https://github.com/aconchillo/guilescript")
+ (synopsis "Guile to JavaScript compiler")
+ (description
+ "GuileScript is a toy compiler that aims to compile Guile to JavaScript. It
+currently does not do much, but it might in the future.")
+ (license license:gpl3+)))
+
;; There are no releases yet of this package.
(define-public guile-pipe
(let ((commit "0746ec38d19d844dff0c6f62f209b2b6c8d8872e")
base-commit: 3734857fc55df2c599c2fe5cc4ae49f5d47879fc
--
2.38.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#58749: [PATCH] gnu: Add guilescript.
2022-10-23 20:30 [bug#58749] [PATCH] gnu: Add guilescript Evgeny Pisemsky
@ 2022-11-05 10:52 ` Christopher Baines
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Baines @ 2022-11-05 10:52 UTC (permalink / raw)
To: Evgeny Pisemsky; +Cc: 58749-done, guix-patches
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
Evgeny Pisemsky <evgeny@pisemsky.com> writes:
> [1. text/x-patch; 0001-gnu-Add-guilescript.patch]...
Thanks for the patch Evgeny, guilescript looks interesting :)
I've gone ahead and pushed this to master as
2b004b4ed0f1c6b16fa6c8bf0cbb3325538cf398.
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-05 10:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-23 20:30 [bug#58749] [PATCH] gnu: Add guilescript Evgeny Pisemsky
2022-11-05 10:52 ` bug#58749: " Christopher Baines
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).