From patchwork Thu Sep 14 05:27:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "B. Wilson" X-Patchwork-Id: 53799 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 97C0327BBEA; Thu, 14 Sep 2023 06:28:07 +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=-1.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, URIBL_BLOCKED autolearn=no 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 A9B6827BBE2 for ; Thu, 14 Sep 2023 06:28:06 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgetS-000307-BC; Thu, 14 Sep 2023 01:27:58 -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 1qgetR-0002zy-Et for guix-patches@gnu.org; Thu, 14 Sep 2023 01:27:57 -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 1qgetR-0004mr-5T for guix-patches@gnu.org; Thu, 14 Sep 2023 01:27:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgetW-0001HE-Fu for guix-patches@gnu.org; Thu, 14 Sep 2023 01:28: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, 14 Sep 2023 05:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65934 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65934@debbugs.gnu.org Cc: "B. Wilson" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16946692694887 (code B ref -1); Thu, 14 Sep 2023 05:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Sep 2023 05:27:49 +0000 Received: from localhost ([127.0.0.1]:36520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgetJ-0001Gk-C2 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 01:27:49 -0400 Received: from lists.gnu.org ([2001:470:142::17]:51348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgetE-0001GU-R7 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 01:27:48 -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 1qget3-0002wW-5I for guix-patches@gnu.org; Thu, 14 Sep 2023 01:27:33 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgesy-0004bw-7w for guix-patches@gnu.org; Thu, 14 Sep 2023 01:27:31 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1694669247; x=1694676447; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: Subject: Cc: To: To: From: From: Sender: Sender; bh=iO4KZvNCcF8REEHV4RznrmbW8Bq4+YcorJmpKrDulYc=; b=48mNlapRQ0J3K0xoBam2rRVppFWtOCtDtsIPJbRqqHsDUkQ9GXJCb172NP6IoMErQ+8XMhPYNwv6U9AX7e/p8kb1R9V7P6bv674NN7hnwhWFw6YGXL01jvkc4dKH1sk5wdfKnt9X4qCauO8jUYhn3GfRu1aHsgF1+f4qYYqBQOo06GXpChuU3D+kdujPOAvQ32/VpVdCZSV2kRBpJcXxcG2cqEFc4uyi3RDOK1dcb8ouVR6yI+d+q7kWlgdJ95+Vcxzm2/4gykK1xeajYMZO3KECJrFLCJs5p7r/uImAs7D0jQcdVoFReoNcHZszmmvlldFdcRxpRyGYOBiHBgqZ1w== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyI5MmEzMyIsImd1aXgtcGF0Y2hlc0BnbnUub3JnIiwiMDg1NDdhIl0= Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by ffcf8ad72342 with SMTP id 650299bfb39ab82ace084c6d (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Thu, 14 Sep 2023 05:27:27 GMT Received: from localhost (199.147.145.153.ap.dti.ne.jp [153.145.147.199]) by wilsonb.com (Postfix) with ESMTPSA id 1B8CEA0586; Thu, 14 Sep 2023 05:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1694669244; bh=iO4KZvNCcF8REEHV4RznrmbW8Bq4+YcorJmpKrDulYc=; h=From:To:Cc:Subject:Date:From; b=9BatndNMQTPz+IiRMBPIn8Rb1ct/E0VVopc8RheUXtH+8spmX9Y54e9rUkNQd2ipL Rl2xfUV/AfCW4VqVMXAJJ3WkX4xYdSCMQTXhyBAh4pNHt7nSgb8yJZpZe29UK7qAwB fDJim3VIF4ZhMnHfMakJSYmjoOitx35LXI9IGWEqBAFITI8L/z0Soy0oAlUIGxgSX9 slklK+Hl4bLIe7KtmL5gKEAoiQIJ76PTrwt4gVTa5tBEkqO33s4r0KHJjaZP0N18ai SCO7qvNHB/R3gU+khwmLpcj8JuXC7l4gHkH9DQ2o4nBCBT5NrN3l5gZo4k8xXHQ8rp rnswsSrEQ0DPanWReFXeJPwZgEKolnPLNyb8Rpo5GVpQ9RwBcK6+X12smHbK4HvWWt Rr/V2CPmOt4MM20WnyzLj633vY/a/vbk2cS8OhmW+lFcr8kiXxluPE5fHWzVd5vjLM g67FQSQOFuCQIsVKBJdY3uy2CRq+em4id3Of23jTfO1KFfS5Wo+DbfzGAgjUulKzU1 nMPl9/IBpAVVYDMbhC6z7kv0CwkT+ZGM2+YVN+CqvNGRXZolHs5h3rLB7LB56C8UKw 2/k4RC5rVo2Vell+3fXYsJN/x/aiWPUS6zSRnINyy12SkcmwAU0N2sLi+TBp28S2/z cDG+M2G9+p/IiBfrQLhjAS7c= Date: Thu, 14 Sep 2023 14:27:09 +0900 Message-ID: <20230914052721.27820-1-elaexuotee@wilsonb.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=69.72.42.5; envelope-from=bounce+686de0.08547a-guix-patches=gnu.org@mg.wilsonb.com; helo=m42-5.mailgun.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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 * gnu/packages/forth (smithforth): New variable. --- gnu/packages/forth.scm | 55 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/gnu/packages/forth.scm b/gnu/packages/forth.scm index 8cb6ac8391..9910243ac1 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. ;;; @@ -22,7 +23,9 @@ (define-module (gnu packages forth) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) - #:use-module (gnu packages m4)) + #:use-module (guix build-system trivial) + #:use-module (gnu packages m4) + #:use-module (gnu packages vim)) (define-public gforth (package @@ -58,3 +61,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) + (inputs + `(("system.fs" + ,(origin + (method url-fetch) + (uri (string-append "https://dacvs.neocities.org/SF/system" + version "fs.txt")) + (sha256 + (base32 + "17v1pp64s6n8q8w3kg48nd7zdcx2208y4svr5fpfms5lkyzg7z1m")))))) + (native-inputs (list xxd)) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils) + (ice-9 textual-ports)) + (let* ((sforth.dmp (assoc-ref %build-inputs "source")) + (system.fs (assoc-ref %build-inputs "system.fs")) + (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.") + (license license:expat-0)))