From 8408e0e511157c6c875481b69137b2545ec82966 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 4 Aug 2025 23:58:23 +0100 Subject: [PATCH] gnu: Add utmp-cli. * gnu/packages/hardware.scm (utmp-cli): New variable. --- gnu/packages/hardware.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 9de7f7d63dab5de013a7882aaef8f284e6418d13..421993d12c0a43e9926c76dbde8b7a8154f35c56 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024 Jakob Kirsch ;;; Copyright © 2025 Eric Bavier +;;; Copyright © 2025 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -782,6 +783,38 @@ color (good for notifications) (home-page "https://github.com/enwi/hueplusplus") (license license:lgpl3+))) +(define-public utmp-cli + (package + (name "utmp-cli") + (version "1.063") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/usbtemp/utmp-cli") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "07j827nin4wm4hh8ljsj1dj3harb3dxan05ck8n68c443qqakz4a")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f + #:make-flags #~(list (string-append "CC=" #$(cc-for-target))) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (install-file "utmp-cli" + (string-append (assoc-ref outputs "out") + "/bin"))))))) + (home-page "https://github.com/usbtemp/utmp-cli") + (synopsis "Read temperature from USB thermometer") + (description "Read temperature from usbtemp.com USB thermometer and +DS9097E compatible 1-wire adapter with one DS18B20 digital probe attached +through command line interface.") + (license license:expat))) + (define-public i7z (let ((revision "0") (commit "1a41ff13db747e962456ddbb5ccb2b7fc43ca0cb"))