From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KIqSC+iZAmVs0wAA9RJhRA:P1 (envelope-from ) for ; Thu, 14 Sep 2023 07:28:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KIqSC+iZAmVs0wAA9RJhRA (envelope-from ) for ; Thu, 14 Sep 2023 07:28:08 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E54174D594 for ; Thu, 14 Sep 2023 07:28:06 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mg.wilsonb.com header.s=krs header.b=48mNlapR; dkim=fail ("headers rsa verify failed") header.d=wilsonb.com header.s=201703 header.b=9BatndNM; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694669287; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iO4KZvNCcF8REEHV4RznrmbW8Bq4+YcorJmpKrDulYc=; b=C3BsSKGCRFwBz9bzmt5uWqcbZIce5vxJu/u5C74oY/rXr3HUUS+sdLAAiJk75SwQPPtdbd AWxWjtj9ZPPW0mJcX3iYFdysp0LzlHYnt1AU4qtDcs7PmBnn01SxLWPdELoG1y/oRuCTPA ay6O/3xSvC3pCWIxs6UHT+HzWShLkV7vPjh/77ZthFi3n3ZV5W8uU8YbtZNppBN/EyFQF3 nnch9CXj1Mzh1kjoCbY4QVoM7cdLua7OAemqSqL+kDtxk8K/EmjgJvCJQiEeFO/eMi/oJZ RpQzaCpal5DCVSXVwybrqmrbC5hGtO9hzZ4RVNZkAVWkjpslQp33BYe42yjZAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mg.wilsonb.com header.s=krs header.b=48mNlapR; dkim=fail ("headers rsa verify failed") header.d=wilsonb.com header.s=201703 header.b=9BatndNM; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694669287; a=rsa-sha256; cv=none; b=QTfF3fKgF4l+TPDVavuCTuE17igX8DHAdN828uKzLwT+LjKSCUJCtVfsDiq3vRy/jQPf4H FADYxr/3SAoReYNUEf0sziog6/scdhfVxtgMQEOcQj9FgOkduTpvt/1qDkT+nLFKkARb8L OTOpsdlOMUv+XE05iDhV1Z2zaTE56/8d+Q6mff5FNjubRotexG8mJpiU1vAZ9ZotqkflTu QFPNWGOr2JWBS1ex9WbCE/JZLMEnZBvBs8QfwQQSgINjfuvI4vpPcumNgNfeOdXt++pXs9 FHFwxsawU8qAWZZRwxKJC9rxGOQSP7DZxUJqCoQUtna1m1dgP8tfsnUXdiQBsA== 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" From: "B. Wilson via Guix-patches" via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -0.41 X-Spam-Score: -0.41 X-Migadu-Queue-Id: E54174D594 X-TUID: ZMySuGbKrDka * 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))) -- 2.41.0