From: Ramin Honary <ramin.honary@gmail.com>
To: 65494@debbugs.gnu.org
Subject: [bug#65494] [PATCH] gnu: Add stklos.
Date: Thu, 24 Aug 2023 18:05:26 +0900 [thread overview]
Message-ID: <CAFhnQTTRoqarXAcfV_fKmYtSbDhUcgLOiUxuM6CT0V-WF4A5Sg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 228 bytes --]
Dear Guix Package maintainers:
I have created a Guix package for the STklos Scheme compiler. (Thanks
to Andrew Tropin for teaching me how!)
I would appreciate a code review, thank for your time!
Best regards,
-- Ramin Honary
[-- Attachment #2: 0001-gnu-Add-stklos.patch --]
[-- Type: text/x-patch, Size: 3250 bytes --]
From 465538f4b2824f49d99e4eef799f25f644a37bbc Mon Sep 17 00:00:00 2001
Message-Id: <465538f4b2824f49d99e4eef799f25f644a37bbc.1692867653.git.ramin.honary@cross-compass.com>
From: Ramin Honary <ramin.honary@cross-compass.com>
Date: Thu, 24 Aug 2023 17:57:51 +0900
Subject: [PATCH] gnu: Add stklos.
* gnu/packages/scheme.scm (stklos): New variable.
---
gnu/packages/scheme.scm | 48 +++++++++++++++++++++++++++++++++++++++--
1 file changed, 46 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index c0e2e3ab48..611e0344e0 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -42,8 +42,8 @@
(define-module (gnu packages scheme)
#:use-module (gnu packages)
#:use-module ((guix licenses)
- #:select (gpl2+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ asl2.0 bsd-3
- cc-by-sa4.0 non-copyleft expat public-domain))
+ #:select (gpl2 gpl2+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ asl2.0
+ bsd-3 cc-by-sa4.0 non-copyleft expat public-domain))
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix download)
@@ -1236,3 +1236,47 @@ (define-public emacs-gerbil-mode
(description
"Gerbil mode provides font-lock, indentation, navigation, and REPL for
Gerbil code within Emacs.")))
+
+(define-public stklos
+ (package
+ (name "stklos")
+ (version "1.70")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://stklos.net/download/stklos-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1iw3pgycjz3kz3jd1855v2ngf8ib2almpf8v058n1mkj1qd2b88m"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:modules `((ice-9 ftw)
+ ,@%gnu-build-system-modules)
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'patch-sh-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((bash-bin (search-input-file inputs "/bin/bash")))
+ (substitute* "configure"
+ (("/bin/sh") bash-bin)))))
+ (add-after 'configure 'patch-rm-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((rm-bin (search-input-file inputs "/bin/rm")))
+ (ftw "."
+ (lambda (filename stat-info f)
+ (when (and
+ (equal? f 'regular)
+ (string=? (basename filename) "Makefile"))
+ (substitute* filename
+ (("/bin/rm") rm-bin)))
+ #t))))))))
+ (home-page "https://stklos.net")
+ (synopsis "R7RS Scheme with CLOS-like object system")
+ (description
+ "STklos is a free Scheme system mostly compliant with the languages
+features defined in R7RS small. The aim of this implementation is to be fast
+as well as light. The implementation is based on an ad-hoc Virtual
+Machine. STklos can also be compiled as a library and embedded in an
+application.")
+ (license gpl2)))
base-commit: 160f78a4d92205df986ed9efcce7d3aac188cb24
--
2.34.1
next reply other threads:[~2023-08-24 13:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 9:05 Ramin Honary [this message]
2023-09-14 14:12 ` bug#65494: [PATCH] gnu: Add stklos Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFhnQTTRoqarXAcfV_fKmYtSbDhUcgLOiUxuM6CT0V-WF4A5Sg@mail.gmail.com \
--to=ramin.honary@gmail.com \
--cc=65494@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).