From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uLY5Ecamq2J9BwEAbAwnHQ (envelope-from ) for ; Thu, 16 Jun 2022 23:55:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IGsnEcamq2LIIQAAauVa8A (envelope-from ) for ; Thu, 16 Jun 2022 23:55:18 +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 DC08F37A9A for ; Thu, 16 Jun 2022 23:55:17 +0200 (CEST) Received: from localhost ([::1]:50200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1xSP-0005Sw-2I for larch@yhetil.org; Thu, 16 Jun 2022 17:55:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1xSB-0005Jf-4R for guix-patches@gnu.org; Thu, 16 Jun 2022 17:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1xSA-0000BT-SC for guix-patches@gnu.org; Thu, 16 Jun 2022 17:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1xSA-0005fx-RB for guix-patches@gnu.org; Thu, 16 Jun 2022 17:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55922] [PATCH 1/2] gnu: Add guile-termios. References: <20220612100404.3388-1-antero@mailbox.org> In-Reply-To: <20220612100404.3388-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Jun 2022 21:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55922@debbugs.gnu.org Received: via spool by 55922-submit@debbugs.gnu.org id=B55922.165541646021753 (code B ref 55922); Thu, 16 Jun 2022 21:55:02 +0000 Received: (at 55922) by debbugs.gnu.org; 16 Jun 2022 21:54:20 +0000 Received: from localhost ([127.0.0.1]:43293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRT-0005en-IU for submit@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:19 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:47502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1xRN-0005eG-IX for 55922@debbugs.gnu.org; Thu, 16 Jun 2022 17:54:15 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (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 4LPGCd1b4yz9sSh for <55922@debbugs.gnu.org>; Thu, 16 Jun 2022 23:54:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655416445; 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=G+cQmEARDFSr4V7Kh+UmpIocShcc3Ajn0fFy8MuQVJE=; b=oqJvJ7su2kxzkDd96j6DEcqrP/bG7MkAvlDjSgOiHskQkHKzG1yOGaVIiRtd7sNap5R08q La6M774q4SQmTrIXOHygKAqaMXM0mazziZFQIQdVcWsL/TU1FYIH7FJvcafOGHy+GMJJZp PvK6MxaFSkDKhhFjJICgMQlZS0OAJY9y+CJThncjrcEr/79HOrXe8Zg3iF3YlPtITyELlb /hbMB+dUI5hHKf5st+zdyQyWTlP8dG2SDdKmFTV3IR1ud0pbw44TaPmdErChZQrypmcpZm Fv3xWTrvubOslVu1WxTimHEn+xtH8xZ+QQbJcN8Y17zR3uuYlFCJnhxqGn4WnA== Date: Thu, 16 Jun 2022 21:53:55 +0000 Message-Id: <20220616215356.2831-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 656998bd0bee533d058 X-MBO-RS-META: t6iu83s5p97zdcjhzg1zm8rngg7t7tju 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=1655416517; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=G+cQmEARDFSr4V7Kh+UmpIocShcc3Ajn0fFy8MuQVJE=; b=Sy9XstI+v8LEakyHKfmrYkJRZLHmxUyMvoV+sh7PsJm9jIATA/HKRHmOl2Fsn+8vEKPDoI YI5uJrrzcPdKhOqZ+hLMCF0NAhrKfRBoIJAJ992LqaiBH0o3gdG1Xb+yq3USfl0s5hlLz9 9oiJHH0nM51eXjSyRuBvbztWjlcdPwQTnIoC8Sf/iN0uIPmTvYJ7CmX7nwbdTX7h5wDHGR G5bnCDMOXGcxyTWirN0Af+vfu+uz61oyU7ZhbCGU/NZtKiIcxaeZ4Idw+q2np3acIuHW5j Cb+RFL0lGzyvM+9oNRYJgT88eOZLuZXlAFUtiDhEkuP45xxH5ERWkP5k/saNSg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655416517; a=rsa-sha256; cv=none; b=gWwjKOUUr5NC07h+Hw6HcvcmFmdUDabWlesilW4ATvAkRy35oe+MYGhZVb19pfkdXCaJmb hvMoQxg6fo9Ku11JdKTyGGwN6eN7db1vIAI06GrIatTr+SGOfIdrE87TO9LhYNyjJvvdID XPcsjHHdqRBrx3rH2G1QtDjK5oFoz+rG1KosJWCy4CrJOT4LD5xLGuEK0uIe70PR1LC5w0 ACjc59y1TaCLLRd7YFGjPIdIMQCSOippbvlJ0yn3Q4eiFcom+/Yqu1oq45g25s6YNusGx6 Ili3Ub2jUZ8M8nc6mFYJ3rfxRT2cmR/gd7bH/JqUlOZvVYAQAsXQN1hpA/M4Uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=oqJvJ7su; 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: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=oqJvJ7su; 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: DC08F37A9A X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: tBj1lJYxAsHs * gnu/packages/guile-xyz.scm (guile-termios): New variable. --- gnu/packages/guile-xyz.scm | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index c6f73a38e9..10065ff1da 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. ;;; @@ -83,6 +84,7 @@ (define-module (gnu packages guile-xyz) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages hurd) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) @@ -5019,3 +5021,45 @@ (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 #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (substitute* "Makefile" + (("CC = cc") (string-append "CC=" + #$(cc-for-target))) + (("PREFIX = /usr/local") (string-append "PREFIX=" + #$output))))) + (replace 'build + (lambda _ + (invoke "make") + (invoke "make" "-C" "doc" "man") + (invoke "make" "install"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test"))))))) + (native-inputs (list guile-3.0 guile-tap pandoc perl perl-io-tty)) + (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))) -- 2.36.1