From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KI3gMm66pWJNXQEAbAwnHQ (envelope-from ) for ; Sun, 12 Jun 2022 12:05:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oALfMm66pWLnnAAA9RJhRA (envelope-from ) for ; Sun, 12 Jun 2022 12:05:34 +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 5538C1E31B for ; Sun, 12 Jun 2022 12:05:34 +0200 (CEST) Received: from localhost ([::1]:48696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0KTN-0001QR-1A for larch@yhetil.org; Sun, 12 Jun 2022 06:05:33 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655028334; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=xlPDjWNAIrGoDROOTZ5wOQ98CarE8CetkG0CGrub0nc=; b=kS7XzTi3HNSvJO/zQnYxekuaZfibifFDQd2lGSDc1DRhVcMcsnwCit014Dh49nxURUAx2G LrQT6aSWQycNtIK0aH1uapkxpwqasYUW3Ewc/YK8snV6v0ovHL4yEtXUi/RuCEKi+lJDo/ Dbxf9ItRcBF9XTUMTqcUkmBzE8VrVQSzL/g+LzJ/DlOIBHz6J4IaW91uhYHC+HC5e5/4KP TeYXjypBygwA4LU/IxG6+HVnGqCVEODZi3onCQLdNSerfOp32KxRRGyclM00pS0rEFjivy urTbz5kKUQud5WTyibDZwSqonz9mOoUGTqIrk4iEi4vN9oY72ZGWQS6Tm4KeBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655028334; a=rsa-sha256; cv=none; b=X70byx7JUYzPVK1br6Q/c71W0W9MAhMhhTDvcEv7IoDFZCi9n/kC1CwLmcbm02/Er5LB7F arH6uaNTDGi6QGv8Uj4H0hldrmSqwhcmz3Go8VxyJHXJAkcwYPQYr0n1I2FATe90hbaxOv s7EI2dnwwfrZ4Ob27MYwQ3XzmW57YkUtwENWcuItTS9hQFjDOdfliwfcp0nuaUtcslvNzk pynu8kPAK1tlNTWUNQ+3nQK1wRgMMvITAKUFzSGln+6Iy9cfEkJSlmhDgDPhQUkxwYhDpn x1qwoDt5f0G+k0F+HOIqAsK/ShydX+lJHh9TrhImONK8c3DP0yEi5+DxrMobfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ucDWDp9M; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -5.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ucDWDp9M; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 5538C1E31B X-Spam-Score: -5.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: LS/LEx+kTIGb * 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)))) -- 2.36.1