From patchwork Thu Oct 5 15:01:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "B. Wilson" X-Patchwork-Id: 54500 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1B66027BBEA; Thu, 5 Oct 2023 16:02:59 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E31B227BBE2 for ; Thu, 5 Oct 2023 16:02:57 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoPsE-0004ki-8z; Thu, 05 Oct 2023 11:02:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qoPsC-0004kH-Go for guix-patches@gnu.org; Thu, 05 Oct 2023 11:02:44 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qoPsC-0005vH-87 for guix-patches@gnu.org; Thu, 05 Oct 2023 11:02:44 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoPsU-0000uW-F5 for guix-patches@gnu.org; Thu, 05 Oct 2023 11:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65934] [PATCH] gnu: Add smithforth. Resent-From: "B. Wilson" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Oct 2023 15:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65934 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: 65934@debbugs.gnu.org Received: via spool by 65934-submit@debbugs.gnu.org id=B65934.16965181433431 (code B ref 65934); Thu, 05 Oct 2023 15:03:02 +0000 Received: (at 65934) by debbugs.gnu.org; 5 Oct 2023 15:02:23 +0000 Received: from localhost ([127.0.0.1]:48150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoPrr-0000tG-17 for submit@debbugs.gnu.org; Thu, 05 Oct 2023 11:02:23 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]:38024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoPrm-0000sy-Uv for 65934@debbugs.gnu.org; Thu, 05 Oct 2023 11:02:21 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1696518115; x=1696525315; h=Content-Type: MIME-Version: Message-Id: In-Reply-To: References: From: From: Subject: Subject: Cc: To: To: Date: Sender: Sender; bh=4IizRhABsA+lSVcc/PE9halqbdiRS4rIba082/lz1FI=; b=GTayd8gCd32V+z6hIknMjNRSR+yhjnL3YXEnC3Tj/i3OPZTN7iKxs1wW0D4X1CgMXFhAjxUoeb3rModX8WWZmZ6hy1JxZjAp0Kr+Yo2nADuDE0PhsfqQfNRo+XB057nF7xk9GUgE3j48PMWeBnhGSf3Ma4a+pawwIHR6NPdWAdScmdqDgVYcZc+DRLD1pWAQ1Pa7FTqqkKgthcvpzX5LcRqOQW7P3Extfy8peZxfjOfpJicfIUsLj3WL9PTn5dzEvWYBWBMDyNXwu29YhdT3vwCxu1v1Oxgo1EXUmqVwnlA20Fl/WFP0qh4aEIERYW7CRBfY3uyzS9ba+sKXGzZKyQ== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyJmNzU0NSIsIjY1OTM0QGRlYmJ1Z3MuZ251Lm9yZyIsIjA4NTQ3YSJd Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by 0af60cf557a8 with SMTP id 651ecfe22abed766dccdd27c (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Thu, 05 Oct 2023 15:01:54 GMT Received: from localhost (i114-182-69-148.s41.a007.ap.plala.or.jp [114.182.69.148]) by wilsonb.com (Postfix) with ESMTPSA id E9273A0E4E; Thu, 5 Oct 2023 15:01:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1696518113; bh=4IizRhABsA+lSVcc/PE9halqbdiRS4rIba082/lz1FI=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=HYQjjhw9b7a7jxd/vVXueH36ZAOkJ1wpgdIN/rTTq2bJx0IWhHMCpc0I9svuxruoq hbxIwzzH7K2axlZ935GmCFHWhFXLSSsktBeHoqNPdt9WWdhqO+GpRZ/TPrha//nPsS 3CZ2GLVUIeoSno9YtKqKxSHzOwh1FdYINlSTyR6AqVGTGIX+8qFgGBPNGfg0IEqGWS 3eNmnMedcMrsw3y76COm6g+z1TQt/i7lO/LAisKO2ZLsj2bMtNqPgkxgK6WJblgRB1 B/ubwNNcFnf8Jvf4Wrmqf4AsQm0DPgR9NDwCPRaYxTwS4pwrn8dHDj4v93I4y3RIfL 0jPwh9K4jVtIV/R5myxdbKWF7fcUDO3Fb9a0zVxsod4Mh6Xj7KnoAvnPgLBbBDRRw2 AwPz4zm66/tA/aq/F3ez0nA7B9bHYkoiRrIpa13OoPoA8faPASvdjmC6JM6l2mcmXO kMkAI9QRX1PyaUmXDMmpIFAzqxTTDFlzdxdI3/a9ZBkcTBHQkYrMgsHIhhPSukxQ0M m11pnCs/O8MddFDFU2tbq5yG6a+K8Iw+QAFTTfqeTzipsLFGu1CYLNzfyVTwsBGG39 yinKEtQaYiM6UinmP3DDCFAQ3hHcFes3Uz845GaJHxQRlBGna3KsgJ8HZzmtcYtROZ lFwqT8Ceq3udCb9MJJ470IaI= Date: Fri, 06 Oct 2023 00:01:51 +0900 References: <20230914052721.27820-1-elaexuotee@wilsonb.com> <87wmw16xtq.fsf@gnu.org> In-Reply-To: <87wmw16xtq.fsf@gnu.org> Message-Id: <3NL1U5UBSLFFK.2486N8UEFYJ8E@wilsonb.com> User-Agent: mblaze/1.2 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: "B. Wilson" X-ACL-Warn: , "B. Wilson via Guix-patches" X-Patchwork-Original-From: "B. Wilson via Guix-patches" via From: "B. Wilson" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From de5655662415acb600f9074c6efe70d3949ac21e Mon Sep 17 00:00:00 2001 From: "B. Wilson" Date: Thu, 14 Sep 2023 14:26:49 +0900 Subject: [PATCH] gnu: Add smithforth. * gnu/packages/forth (smithforth): New variable. --- gnu/packages/forth.scm | 60 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/gnu/packages/forth.scm b/gnu/packages/forth.scm index 8cb6ac8391..6e8d8cdc4c 100644 --- a/gnu/packages/forth.scm +++ b/gnu/packages/forth.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 Nikita ;;; Copyright © 2016 Sou Bunnbu +;;; Copyright © 2023 B. Wilson ;;; ;;; This file is part of GNU Guix. ;;; @@ -18,11 +19,14 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages forth) + #:use-module (guix build-system gnu) + #:use-module (guix build-system trivial) + #:use-module (guix download) + #:use-module (guix gexp) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) - #:use-module (guix download) - #:use-module (guix build-system gnu) - #:use-module (gnu packages m4)) + #:use-module (gnu packages m4) + #:use-module (gnu packages vim)) (define-public gforth (package @@ -58,3 +62,53 @@ (define-public gforth included.") (home-page "https://www.gnu.org/software/gforth/") (license license:gpl3+))) + +(define-public smithforth + (package + (name "smithforth") + (version "220711") + (source + (origin + (method url-fetch) + (uri (string-append "https://dacvs.neocities.org/SF/SForth" + version "dmp.txt")) + (sha256 + (base32 "0a39pv7529llsa3f48fmvwvlcp3f9v8qkn5ziw2l6kxf0qvli3lm")))) + (build-system trivial-build-system) + (native-inputs (list xxd)) + (arguments + (list + #:modules '((guix build utils)) + #:builder + #~(begin + (use-modules (guix build utils) + (ice-9 textual-ports)) + (let* ((sforth.dmp #$(package-source this-package)) + (system.fs #$(origin + (method url-fetch) + (uri (string-append + "https://dacvs.neocities.org/SF/system" + version "fs.txt")) + (sha256 + (base32 + "17v1pp64s6n8q8w3kg48nd7zdcx2208y4svr5fpfms5lkyzg7z1m")))) + (xxd (string-append (assoc-ref %build-inputs "xxd") + "/bin/xxd")) + (bin (string-append (assoc-ref %outputs "out") "/bin"))) + (copy-file sforth.dmp "sforth.dmp") + (substitute* "sforth.dmp" (("#.*$") "\n")) + (with-output-to-file "sforth" + (lambda _ + (invoke xxd "-p" "-r" "sforth.dmp") + (call-with-input-file system.fs + (lambda (port) (display (get-string-all port))))) + #:binary #t) + (chmod "sforth" #o755) + (install-file "sforth" bin))))) + (home-page "https://dacvs.neocities.org/SF/") + (synopsis "Forth programming language for x86-64 desktop computers") + (description "SmithForth is an implementation of the Forth programming +language for x86-64 desktop computers. SmithForth is a text interpreter that +runs in a Linux text console.") + (supported-systems '("x86_64-linux")) + (license license:expat-0))) base-commit: 2afa9353a0f69dabf4ddec54b58b60308092c794 -- 2.41.0