From patchwork Tue Nov 28 11:34:48 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: 56898 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 22AAC27BBEA; Tue, 28 Nov 2023 11:37:35 +0000 (GMT) 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 1B3D527BBE2 for ; Tue, 28 Nov 2023 11:37:34 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7wOf-0006tz-7P; Tue, 28 Nov 2023 06:36:57 -0500 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 1r7wOd-0006sM-5R for guix-patches@gnu.org; Tue, 28 Nov 2023 06:36:55 -0500 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 1r7wOc-000893-TD for guix-patches@gnu.org; Tue, 28 Nov 2023 06:36:54 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7wOj-0003NW-Nf for guix-patches@gnu.org; Tue, 28 Nov 2023 06:37:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH v1 05/22] gnu: microscheme: Move to avr-xyz. References: <20230929091333.7623-1-jean@foundationdevices.com> In-Reply-To: <20230929091333.7623-1-jean@foundationdevices.com> Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Nov 2023 11:37:01 +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: moreinfo patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.170117137012715 (code B ref 66263); Tue, 28 Nov 2023 11:37:01 +0000 Received: (at 66263) by debbugs.gnu.org; 28 Nov 2023 11:36:10 +0000 Received: from localhost ([127.0.0.1]:45594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wNo-0003IO-4a for submit@debbugs.gnu.org; Tue, 28 Nov 2023 06:36:10 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:46168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wNj-0003H6-1k for 66263@debbugs.gnu.org; Tue, 28 Nov 2023 06:35:59 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40b3e7f2fd9so25397055e9.0 for <66263@debbugs.gnu.org>; Tue, 28 Nov 2023 03:35:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1701171346; x=1701776146; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=kmp3lPodMxKJbW/RSYwTSrSf8C50dLdB7eDQ6nnEb4E=; b=FvRbxIciSLCUUT2pKe+D58O6SDBH51WjcYXUksn8mS4wcjQ0XHzj9iEXt5yYsptnbf T/nSXoY6vDHA2tD7YaVDzRUS27vvzX1FPxAIxjpklVUwNjs4pUdcgnL+nGvJfeXzaboi I2N1Z4hHt+K4wMDe7/QMvKsVmJVJczYEfQGaw2QqKHnnFYCnw8RiCyOk2aizX+vL+mbg 9tYRdNCPlc5LYBSEZCruosgueQKX3qdvlY1e8WG484m1hcVhQtVmN5BH80jhKEyU+F5f g/0vvbCmx4zoTMb7Dfs7ZSuA9vtv5609Gyh6neHrT7AKjGD4cIzNQOdAK8clcFlbVhtT Mf1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701171346; x=1701776146; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kmp3lPodMxKJbW/RSYwTSrSf8C50dLdB7eDQ6nnEb4E=; b=cxypI1JPAKWVLVjvIWJkFDUJnNLqHqWCVV9AupVWjUhYM5YOMMe0Gvd95E0VG9YGau F+SbNQF/U9QDAoOD+fi2qzgvfOYEx3vszpo+3csEiT8ZeI/MhdCWtQAHOXvHxQipp2oD C6UkdIxABjMfDuRqjuM37Wf0mYdVFA6NvMOcWLGgUnGvDrocju3+nb/irYMe7M44V95A AJv6KaTAtQuoQB13iK0Zwvcf8B5sVkz2d7LsvVHA8840ICBJcGssyTckPYSQuQ0PQ65A jJTBocRGK5zg96nddcmaO09/+qhbHfZzKcf/p/MD2fL12gPYYXpViZ0ZRKyoV0Y70t4O JbDw== X-Gm-Message-State: AOJu0Yw34wWLDC2355CFJ9WafkvoEh3hXYc0wrbVKCn7oN7A9vMDZ8+Y A8tisY9u9ZJICbbMxaTl+CWw70ohaAqUL1RKYgs= X-Google-Smtp-Source: AGHT+IF2RssETxKrELvDTIaDUcpzVdfeazELiglwN2Nqz53/3itqk4Q1ko6w3Yhkk5eKIfQwpLBbDw== X-Received: by 2002:a05:600c:46d3:b0:405:1bbd:aa9c with SMTP id q19-20020a05600c46d300b004051bbdaa9cmr10083426wmo.34.1701171346198; Tue, 28 Nov 2023 03:35:46 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id f7-20020a05600c154700b0040b4cb14d40sm1848769wmg.19.2023.11.28.03.35.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 03:35:45 -0800 (PST) Date: Tue, 28 Nov 2023 12:34:48 +0100 Message-ID: <20231128113510.11214-5-jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 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): Move to ... * gnu/packages/avr-xyz.scm (microscheme): ... here. Change-Id: I1272bfc98b583ab0ab36fcba5a8e19ae018b0b80 --- gnu/packages/avr-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++++++ gnu/packages/avr.scm | 37 ------------------------------------ 2 files changed, 41 insertions(+), 37 deletions(-) diff --git a/gnu/packages/avr-xyz.scm b/gnu/packages/avr-xyz.scm index e0db2e3a0c..cc34189841 100644 --- a/gnu/packages/avr-xyz.scm +++ b/gnu/packages/avr-xyz.scm @@ -29,13 +29,17 @@ (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 documentation) #:use-module (gnu packages elf) #:use-module (gnu packages gl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages llvm) #:use-module (gnu packages ncurses) #:use-module (gnu packages version-control) + #:use-module (gnu packages vim) #:use-module (gnu packages ruby)) (define-public simavr @@ -178,3 +182,40 @@ (define-public lufa compatible microcontroller models, as well as the demos and the documentation.") (license license:expat))) ;see LUFA/License.txt + +(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))) diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm index a66abbbd3a..111547ef87 100644 --- a/gnu/packages/avr.scm +++ b/gnu/packages/avr.scm @@ -175,40 +175,3 @@ (define* (make-avr-toolchain/implementation #:key (xgcc gcc)) (define make-avr-toolchain (memoize make-avr-toolchain/implementation)) - -(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)))