From patchwork Sun Jun 12 10:04:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 2947 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 4D58E27BBEA; Sun, 12 Jun 2022 11:05:38 +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 B62A627BBE9 for ; Sun, 12 Jun 2022 11:05:37 +0100 (BST) Received: from localhost ([::1]:48696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0KTQ-0001QR-N8 for patchwork@mira.cbaines.net; Sun, 12 Jun 2022 06:05:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0KSs-0001Nx-Qp for guix-patches@gnu.org; Sun, 12 Jun 2022 06:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0KSs-000647-GM for guix-patches@gnu.org; Sun, 12 Jun 2022 06:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0KSs-0000fk-9d for guix-patches@gnu.org; Sun, 12 Jun 2022 06:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH] gnu: Add guile-termios. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Jun 2022 10:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55922@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16550282742542 (code B ref -1); Sun, 12 Jun 2022 10:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jun 2022 10:04:34 +0000 Received: from localhost ([127.0.0.1]:54773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0KSQ-0000ew-1n for submit@debbugs.gnu.org; Sun, 12 Jun 2022 06:04:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:55174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0KSK-0000em-GC for submit@debbugs.gnu.org; Sun, 12 Jun 2022 06:04:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0KSI-0000iP-OA for guix-patches@gnu.org; Sun, 12 Jun 2022 06:04:27 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]:60280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1o0KSD-00060E-74 for guix-patches@gnu.org; Sun, 12 Jun 2022 06:04:26 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4LLVfV1Xkzz9sSB for ; Sun, 12 Jun 2022 12:04:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655028258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xlPDjWNAIrGoDROOTZ5wOQ98CarE8CetkG0CGrub0nc=; b=ucDWDp9M2HctYB5f/TqI+1FY5ezT/LAMmhRjnzoPDnfO0jlywGtf4J8UMqeInOx4owO5Hi ZfPQK/D0b8co0tByaNE5GbPUoHLG3Q9DDKOgvd3Zw7CXaPPQudqdGfjtAOl5C8Pu5OZw1s VX6jzP197ybs7lFrWWgxXtT44BhMeJZN4GLZ3WPc0cUhmoI2aHBwp04zHL+71Tt7plb6sC Jg2RvATgmlycSwhCvgmBvbvJbBUyjMH9JCFvo1gxCc4bPPF7VfGPrREoxakKmh/IZqgyfC Y8ymEQB6p+b3q9PKDTdsgMI3Xg9wB3tweBGxYNoj1kGqvL2HYj64oBKshz4wJQ== Date: Sun, 12 Jun 2022 10:04:04 +0000 Message-Id: <20220612100404.3388-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: qbgrj5bp4nczhayhe4jasqasj7xnczwf X-MBO-RS-ID: 8d5b8be8be01523ae74 Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=antero@mailbox.org; helo=mout-p-102.mailbox.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches * gnu/packages/guile-xyz.scm (guile-termios): New variable. --- gnu/packages/guile-xyz.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index c6f73a38e9..373a5b13f1 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -41,6 +41,7 @@ ;;; Copyright © 2021, 2022 Artyom V. Poptsov ;;; Copyright © 2022 Maxime Devos ;;; Copyright © 2022 Zhu Zihao +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -5019,3 +5020,52 @@ (define-public lokke in two different guises.") ;; Dual license: LGPLv2.1+ or EPLv1.0+ at the user's option. (license (list license:lgpl2.1+ license:epl1.0))))) + +(define-public guile-termios + (package + (name "guile-termios") + (version "0.6.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ft/guile-termios") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "020p3c84z09wyyb6gfzj2x6q2rfmvas7c92fcm2hhg8z1q60sqkg")))) + (build-system gnu-build-system) + (arguments + (list #:tests? + #f + #:make-flags + #~(list (string-append "CC=" + #$(cc-for-target)) + (string-append "PREFIX=" + #$output)) + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "compile")))))) + (native-inputs (list guile-3.0)) + (home-page "https://github.com/ft/guile-termios") + (synopsis "POSIX termios interface for GNU Guile") + (description + "To query and change settings of serial devices on POSIX systems, the +termios API is used. GNU Guile doesn't have an interface for that built in. +This module implements this interface by use of Guile's dynamic FFI.") + (license license:bsd-2))) + +(define-public guile2.0-termios + (package + (inherit guile-termios) + (name "guile2.0-termios") + (native-inputs (list guile-2.0)))) + +(define-public guile2.2-termios + (package + (inherit guile-termios) + (name "guile2.2-termios") + (native-inputs (list guile-2.2))))