unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Antero Mejr via Guix-patches via <guix-patches@gnu.org>
To: 55922@debbugs.gnu.org
Subject: [bug#55922] [PATCH] gnu: Add guile-termios.
Date: Sun, 12 Jun 2022 10:04:04 +0000	[thread overview]
Message-ID: <20220612100404.3388-1-antero@mailbox.org> (raw)

* 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 <poptsov.artyom@gmail.com>
 ;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
+;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
 ;;;
 ;;; 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





             reply	other threads:[~2022-06-12 10:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-12 10:04 Antero Mejr via Guix-patches via [this message]
2022-06-12 15:47 ` [bug#55922] [PATCH] gnu: Add guile-termios Maxime Devos
2022-06-12 22:21 ` Antero Mejr via Guix-patches via
2022-06-16 21:15   ` Ludovic Courtès
2022-06-16 21:53 ` [bug#55922] [PATCH 1/2] " Antero Mejr via Guix-patches via
2022-06-16 21:53   ` [bug#55922] [PATCH 2/2] gnu: Add guile-tap Antero Mejr via Guix-patches via
2022-06-17 20:53   ` bug#55922: [PATCH] gnu: Add guile-termios Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220612100404.3388-1-antero@mailbox.org \
    --to=guix-patches@gnu.org \
    --cc=55922@debbugs.gnu.org \
    --cc=antero@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).