unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: phodina via Guix-patches via <guix-patches@gnu.org>
To: 59852@debbugs.gnu.org
Subject: [bug#59852] LXI protocol
Date: Tue, 06 Dec 2022 03:19:17 +0000	[thread overview]
Message-ID: <JOa0JrizoCuQsmT0nIIGlUfjAZAJEKJhtey80c1wUl3Xdr6ioOBeCaJVQQXbVpFrSnf4_6NGWT6NOCUkgxOBhkFlRT3b-2W_l_Xygp6Wpkc=@protonmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 123 bytes --]

Hello,

these patches add tools to control laboratory equipment remotely (e.g. osciloscope, power supply, etc.).

----
Petr

[-- Attachment #1.2: Type: text/html, Size: 219 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-liblxi.patch --]
[-- Type: text/x-patch; name=0001-gnu-Add-liblxi.patch, Size: 2224 bytes --]

From 42eb2875c900090f5a54f33a1766bae80c0f2988 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sat, 3 Dec 2022 10:21:12 +0100
Subject: [PATCH 1/2] gnu: Add liblxi.

* gnu/packages/hardware.scm (liblxi): New variable.

diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 65558ffe08..64e45dffb8 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -42,6 +42,7 @@ (define-module (gnu packages hardware)
   #:use-module (gnu packages cdrom)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages cmake)
   #:use-module (gnu packages cpp)
   #:use-module (gnu packages crypto)
   #:use-module (gnu packages cups)
@@ -67,6 +68,7 @@ (define-module (gnu packages hardware)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages openldap)
+  #:use-module (gnu packages onc-rpc)
   #:use-module (gnu packages pciutils)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
@@ -1338,3 +1340,30 @@ (define-public libcpuid
 string, code name and other information from x86 CPU. This library is not to be
 confused with the @code{cpuid} command line utility from package @code{cpuid}.")
       (license license:bsd-2))))
+
+(define-public liblxi
+  (package
+    (name "liblxi")
+    (version "1.16")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+          (url "https://github.com/lxi-tools/liblxi")
+          (commit (string-append "v" version))))
+       (sha256
+        (base32
+         "0dfhqslfx78qx5md4va5fpjmxwbxhb6mbx8bzlf31i6nhsj2rzcx"))))
+    (build-system meson-build-system)
+       (native-inputs (list cmake pkg-config))
+       (inputs (list avahi libtirpc libxml2))
+    (home-page
+     "https://lxi-tools.github.io/")
+    (synopsis
+     "LAN eXtensions for Instrumentation library")
+    (description
+     "This package provides library for LAN eXtensions for Instrumentation
+based on the LXI Consortium standard which defines the communication
+protocols for modern instrumentation and data acquision systems using
+Ethernet.")
+    (license license:bsd-3)))
-- 
2.38.1


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-Add-lxi-tools.patch --]
[-- Type: text/x-patch; name=0002-gnu-Add-lxi-tools.patch, Size: 2166 bytes --]

From cc294ff8c4db2bc6a3f01402c45948bff10d1373 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sat, 3 Dec 2022 10:21:45 +0100
Subject: [PATCH 2/2] gnu: Add lxi-tools.

* gnu/packages/hardware.scm (lxi-tools): New variable.

diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 64e45dffb8..bbd0fa4d31 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -62,6 +62,7 @@ (define-module (gnu packages hardware)
   #:use-module (gnu packages high-availability)
   #:use-module (gnu packages libusb)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages lua)
   #:use-module (gnu packages lxqt)
   #:use-module (gnu packages mtools)
   #:use-module (gnu packages package-management)
@@ -81,6 +82,7 @@ (define-module (gnu packages hardware)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages scanner)
   #:use-module (gnu packages security-token)
+  #:use-module (gnu packages readline)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages video)
   #:use-module (gnu packages virtualization)
@@ -1367,3 +1369,30 @@ (define-public liblxi
 protocols for modern instrumentation and data acquision systems using
 Ethernet.")
     (license license:bsd-3)))
+
+(define-public lxi-tools
+  (package
+    (name "lxi-tools")
+    (version "2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+          (url "https://github.com/lxi-tools/lxi-tools")
+          (commit (string-append "v" version))))
+       (sha256
+        (base32
+         "17l70b8whwp0a7j23vsrav1abjzhw78k7rg77q78q07rdqn9fwnd"))))
+    (build-system meson-build-system)
+       (native-inputs (list cmake pkg-config readline))
+       (inputs (list liblxi lua))
+    (home-page
+     "https://lxi-tools.github.io/")
+    (synopsis
+     "LAN eXtensions for Instrumentation tools")
+    (description
+     "This package provides tools for LAN eXtensions for Instrumentation
+based on the LXI Consortium standard which defines the communication
+protocols for modern instrumentation and data acquision systems using
+Ethernet.")
+    (license license:bsd-3)))
-- 
2.38.1


             reply	other threads:[~2022-12-06  3:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-06  3:19 phodina via Guix-patches via [this message]
2023-04-23 17:03 ` [bug#59852] LXI protocol Nicolas Goaziou

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='JOa0JrizoCuQsmT0nIIGlUfjAZAJEKJhtey80c1wUl3Xdr6ioOBeCaJVQQXbVpFrSnf4_6NGWT6NOCUkgxOBhkFlRT3b-2W_l_Xygp6Wpkc=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=59852@debbugs.gnu.org \
    --cc=phodina@protonmail.com \
    /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).