From patchwork Fri Sep 29 09:16:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 54409 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 BBAEE27BBE2; Fri, 29 Sep 2023 10:19:50 +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=unavailable 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 ADBA927BBE9 for ; Fri, 29 Sep 2023 10:19:49 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qm9da-0005f7-3H; Fri, 29 Sep 2023 05:18:18 -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 1qm9dC-0005Tk-2G for guix-patches@gnu.org; Fri, 29 Sep 2023 05:17:56 -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 1qm9d8-0003uL-B8 for guix-patches@gnu.org; Fri, 29 Sep 2023 05:17:50 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qm9dM-0004ld-0P; Fri, 29 Sep 2023 05:18:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH 06/23] gnu: microscheme: Move to avr-xyz. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 29 Sep 2023 09:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com X-Debbugs-Original-Xcc: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.169597904718100 (code B ref 66263); Fri, 29 Sep 2023 09:18:03 +0000 Received: (at 66263) by debbugs.gnu.org; 29 Sep 2023 09:17:27 +0000 Received: from localhost ([127.0.0.1]:55193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cl-0004hm-4g for submit@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:27 -0400 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:50367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cM-0004dw-TV for 66263@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:10 -0400 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50336768615so23166294e87.0 for <66263@debbugs.gnu.org>; Fri, 29 Sep 2023 02:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1695979001; x=1696583801; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cvGHDlsyj+RwjuNpvfOGJLp5v3QnOkVD/245YwXDXOU=; b=Z80H1ZXFAdA0sCJjrR0opiPkI3v+tJSnoJdAhEFvSyGS8xEonTwNlHuXg031d0w4Sa UxWRQ7lFJVtcAiadjk23XBYaxBJ2cDyKEJ/EcbEphqJGjse83VE80aNzbDT7M/1wPy+J lfOrKLqD8g5R7s3MInsUIhR604MKwCWXom41MlHApx46OyyQiVKjzDfDEOOwcPL2uZ08 fixraTSOjGvRajQBmOs1y7azBgD5dUiOg2DHqD5y8ciqcWrjkANBpPoiKgCQyMkrYOIz 98hjWXHKVEahqVXoibygbTF4NxXQBibXauz9PRty1A1J8qjRDU1YuCOPfGutwD0VjQ4M qVTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695979001; x=1696583801; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cvGHDlsyj+RwjuNpvfOGJLp5v3QnOkVD/245YwXDXOU=; b=d+ebSTM/wfaVwVSuJVlBdUeaxnKHPOrmz/OIy3z6umvwHhjhP1lBa/6y1llqDGmH94 Ynkd2yUmTfdBeEmxlRczB7E/4BMWISQtM6LwsqZOMA5goF3wqtwWn0OEeloFfIZNVkmP A2Dm8+9cAI1JOPUSCqT7sjf8S2/YHLuxDOecfQzxIAlZ6TXKKjvYd7Uhx29CZ1xkW3rt M2f/rogfyCF4mOxKBme3DTduZjqQp5M0X5Nm9CsVkhGJqx6Yf3HxfdRY8F1xY/uRoGmy MxBIkl2AEWXKpggUYtAC3LHPtp7HYlKs4LhdemVD0aczLPu2VL52Q7HbCEJSwx5PD1Vw vfaw== X-Gm-Message-State: AOJu0Yz1jcXcHrtHwpeIddlN0h0owOZscmAFXpBgFk1Q4rU9b73XLJoB 1dqoeAR/Zf6pxkZ9HmSkCDbK9lXcNTVR4dY+k+btLw== X-Google-Smtp-Source: AGHT+IEv6c5duH1REQXK80kbIC6dwk6pv0pd4xf2GZtVEIPlF1qO+08Y4IuO5FLHTgW8NsDjMxo6QA== X-Received: by 2002:a05:6512:68f:b0:500:b553:c09e with SMTP id t15-20020a056512068f00b00500b553c09emr3778626lfe.32.1695979001155; Fri, 29 Sep 2023 02:16:41 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id k15-20020a7bc40f000000b004013797efb6sm1020933wmi.9.2023.09.29.02.16.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 02:16:40 -0700 (PDT) Date: Fri, 29 Sep 2023 11:16:10 +0200 Message-Id: <20230929091627.7820-6-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230929091627.7820-1-jean@foundationdevices.com> References: <20230929091627.7820-1-jean@foundationdevices.com> 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: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ 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/avr.scm (microscheme): Remove from file. * gnu/packages/avr-xyz.scm (microscheme): New variable. --- gnu/packages/avr-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++++ gnu/packages/avr.scm | 42 +--------------------------------------- 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/gnu/packages/avr-xyz.scm b/gnu/packages/avr-xyz.scm index a05157ede7..771753b5e4 100644 --- a/gnu/packages/avr-xyz.scm +++ b/gnu/packages/avr-xyz.scm @@ -28,14 +28,55 @@ (define-module (gnu packages avr-xyz) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) #:use-module (gnu packages avr) #:use-module (gnu packages elf) #:use-module (gnu packages gl) + #:use-module (gnu packages llvm) #:use-module (gnu packages pkg-config) #:use-module (gnu packages ncurses) #:use-module (gnu packages version-control) + #:use-module (gnu packages vim) #:use-module (gnu packages ruby)) +(define-public microscheme + (package + (name "microscheme") + (version "0.9.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ryansuchocki/microscheme") + (commit (string-append "v" version)))) + (sha256 + (base32 "1bflwirpcd58bngbs6hgjfwxl894ni2gpdd4pj10pm2mjhyj5dgw")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + `(#:parallel-build? #f ; fails to build otherwise + #:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (delete 'configure)) + #:make-flags + (list (string-append "PREFIX=" (assoc-ref %outputs "out"))))) + (native-inputs + (list clang cppcheck unzip xxd)) + (home-page "https://github.com/ryansuchocki/microscheme/") + (synopsis "Scheme subset for Atmel microcontrollers") + (description + "Microscheme, or @code{(ms)} for short, is a functional programming +language for the Arduino, and for Atmel 8-bit AVR microcontrollers in general. +Microscheme is a subset of Scheme, in the sense that every valid @code{(ms)} +program is also a valid Scheme program (with the exception of Arduino +hardware-specific primitives). The @code{(ms)} compiler performs function +inlining, and features an aggressive tree-shaker, eliminating unused top-level +definitions. Microscheme has a robust @dfn{Foreign Function Interface} (FFI) +meaning that C code may be invoked directly from (ms) programs.") + (license license:expat))) + (define-public simavr (package (name "simavr") diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm index e976203b89..ccce686010 100644 --- a/gnu/packages/avr.scm +++ b/gnu/packages/avr.scm @@ -32,12 +32,9 @@ (define-module (gnu packages avr) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (gnu packages check) - #:use-module (gnu packages compression) #:use-module (gnu packages cross-base) #:use-module (gnu packages flashing-tools) - #:use-module (gnu packages gcc) - #:use-module (gnu packages llvm) - #:use-module (gnu packages vim)) + #:use-module (gnu packages gcc)) (define-public avr-binutils (package @@ -142,40 +139,3 @@ (define-public avr-toolchain C++.") (home-page (package-home-page avr-libc)) (license (package-license avr-gcc)))) - -(define-public microscheme - (package - (name "microscheme") - (version "0.9.4") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ryansuchocki/microscheme") - (commit (string-append "v" version)))) - (sha256 - (base32 "1bflwirpcd58bngbs6hgjfwxl894ni2gpdd4pj10pm2mjhyj5dgw")) - (file-name (git-file-name name version)))) - (build-system gnu-build-system) - (arguments - `(#:parallel-build? #f ; fails to build otherwise - #:tests? #f ; no tests - #:phases - (modify-phases %standard-phases - (delete 'configure)) - #:make-flags - (list (string-append "PREFIX=" (assoc-ref %outputs "out"))))) - (native-inputs - (list clang cppcheck unzip xxd)) - (home-page "https://github.com/ryansuchocki/microscheme/") - (synopsis "Scheme subset for Atmel microcontrollers") - (description - "Microscheme, or @code{(ms)} for short, is a functional programming -language for the Arduino, and for Atmel 8-bit AVR microcontrollers in general. -Microscheme is a subset of Scheme, in the sense that every valid @code{(ms)} -program is also a valid Scheme program (with the exception of Arduino -hardware-specific primitives). The @code{(ms)} compiler performs function -inlining, and features an aggressive tree-shaker, eliminating unused top-level -definitions. Microscheme has a robust @dfn{Foreign Function Interface} (FFI) -meaning that C code may be invoked directly from (ms) programs.") - (license license:expat)))