2018-08-30 16:53:24 +02:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2022-05-29 02:00:04 +02:00
|
|
|
|
;;; Copyright © 2018–2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
2020-04-15 10:03:32 +02:00
|
|
|
|
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
2020-04-23 15:55:32 +02:00
|
|
|
|
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
|
2025-02-28 12:42:24 +03:00
|
|
|
|
;;; Copyright © 2021, 2023-2025 Evgeny Pisemsky <mail@pisemsky.site>
|
2021-01-27 19:52:14 +01:00
|
|
|
|
;;; Copyright © 2021 Léo Le Bouter <lle-bout@zaclys.net>
|
2021-08-18 03:13:56 +02:00
|
|
|
|
;;; Copyright © 2021 Denis Carikli <GNUtoo@cyberdimension.org>
|
2022-04-06 14:36:49 +02:00
|
|
|
|
;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com>
|
2021-08-30 19:33:53 -04:00
|
|
|
|
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
|
2021-10-17 00:45:06 +00:00
|
|
|
|
;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
|
2022-01-02 11:38:03 -05:00
|
|
|
|
;;; Copyright © 2021, 2022 John Kehayias <john.kehayias@protonmail.com>
|
2022-01-11 22:56:14 +08:00
|
|
|
|
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
|
|
|
|
|
|
;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
|
2022-02-03 18:43:52 +01:00
|
|
|
|
;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
|
2022-03-12 20:14:00 +00:00
|
|
|
|
;;; Copyright © 2022 Marcel Kupiec <formbi@protonmail.com>
|
2025-09-18 12:25:39 +09:00
|
|
|
|
;;; Copyright © 2022 Maxim Cournoyer <maxim@guixotic.coop>
|
2025-07-10 09:50:04 +03:00
|
|
|
|
;;; Copyright © 2022, 2025 Efraim Flashner <efraim@flashner.co.il>
|
2023-03-21 14:35:47 -04:00
|
|
|
|
;;; Copyright © 2023 Spencer Skylar Chan <schan12@umd.edu>
|
2023-09-20 12:05:28 +02:00
|
|
|
|
;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
|
2025-11-15 11:58:40 +01:00
|
|
|
|
;;; Copyright © 2024 Giacomo Leidi <therewasa@fishinthecalculator.me>
|
2024-12-18 11:56:25 +08:00
|
|
|
|
;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
|
2024-12-25 22:43:47 +01:00
|
|
|
|
;;; Copyright © 2024 Jakob Kirsch <jakob.kirsch@web.de>
|
2025-02-17 05:45:04 +00:00
|
|
|
|
;;; Copyright © 2025 Eric Bavier <bavier@posteo.net>
|
2025-08-04 23:58:23 +01:00
|
|
|
|
;;; Copyright © 2025 Arun Isaac <arunisaac@systemreboot.net>
|
2025-11-21 07:10:08 -07:00
|
|
|
|
;;; Copyright © 2025 James Smith <jsubuntuxp@disroot.org>
|
2018-08-30 16:53:24 +02:00
|
|
|
|
;;;
|
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages hardware)
|
2021-12-14 00:57:55 +01:00
|
|
|
|
#:use-module (gnu packages)
|
2020-04-23 15:55:33 +02:00
|
|
|
|
#:use-module (gnu packages admin)
|
2020-04-14 16:20:52 +02:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages avahi)
|
|
|
|
|
|
#:use-module (gnu packages base)
|
2020-04-23 15:55:33 +02:00
|
|
|
|
#:use-module (gnu packages bash)
|
2022-04-06 14:36:49 +02:00
|
|
|
|
#:use-module (gnu packages bison)
|
2022-10-23 02:00:00 +02:00
|
|
|
|
#:use-module (gnu packages bootloaders)
|
|
|
|
|
|
#:use-module (gnu packages cdrom)
|
2018-08-30 16:53:24 +02:00
|
|
|
|
#:use-module (gnu packages compression)
|
2020-04-23 15:55:33 +02:00
|
|
|
|
#:use-module (gnu packages check)
|
2022-12-03 10:21:12 +01:00
|
|
|
|
#:use-module (gnu packages cmake)
|
2020-05-01 14:45:57 +02:00
|
|
|
|
#:use-module (gnu packages cpp)
|
2020-04-23 15:55:33 +02:00
|
|
|
|
#:use-module (gnu packages crypto)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages cups)
|
2021-01-28 14:26:28 +01:00
|
|
|
|
#:use-module (gnu packages curl)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages debian)
|
|
|
|
|
|
#:use-module (gnu packages disk)
|
2020-04-23 15:55:33 +02:00
|
|
|
|
#:use-module (gnu packages documentation)
|
2021-08-30 19:33:53 -04:00
|
|
|
|
#:use-module (gnu packages flex)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages freedesktop)
|
2018-10-01 12:36:50 +02:00
|
|
|
|
#:use-module (gnu packages gcc)
|
2021-01-27 19:52:14 +01:00
|
|
|
|
#:use-module (gnu packages gettext)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages gl)
|
2018-08-30 16:53:24 +02:00
|
|
|
|
#:use-module (gnu packages glib)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages gnome)
|
2025-02-14 10:48:49 +00:00
|
|
|
|
#:use-module (gnu packages golang-xyz)
|
2021-01-05 05:30:00 +03:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages guile)
|
2023-05-21 23:27:36 -07:00
|
|
|
|
#:use-module (gnu packages haskell-xyz)
|
2022-09-28 21:20:05 +01:00
|
|
|
|
#:use-module (gnu packages high-availability)
|
2025-11-21 07:10:08 -07:00
|
|
|
|
#:use-module (gnu packages image-processing)
|
2018-08-30 16:53:24 +02:00
|
|
|
|
#:use-module (gnu packages libusb)
|
|
|
|
|
|
#:use-module (gnu packages linux)
|
2022-12-03 10:21:45 +01:00
|
|
|
|
#:use-module (gnu packages lua)
|
2022-03-12 20:14:00 +00:00
|
|
|
|
#:use-module (gnu packages lxqt)
|
2025-08-23 13:35:42 +03:00
|
|
|
|
#:use-module (gnu packages man)
|
2025-09-20 22:50:51 +03:00
|
|
|
|
#:use-module (gnu packages mes)
|
2025-02-28 12:42:24 +03:00
|
|
|
|
#:use-module (gnu packages messaging)
|
2022-10-23 02:00:00 +02:00
|
|
|
|
#:use-module (gnu packages mtools)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages package-management)
|
2018-10-23 20:42:17 +02:00
|
|
|
|
#:use-module (gnu packages ncurses)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages networking)
|
2020-04-23 15:55:33 +02:00
|
|
|
|
#:use-module (gnu packages openldap)
|
2022-12-03 10:21:12 +01:00
|
|
|
|
#:use-module (gnu packages onc-rpc)
|
2021-08-18 03:13:56 +02:00
|
|
|
|
#:use-module (gnu packages pciutils)
|
2021-01-27 19:52:14 +01:00
|
|
|
|
#:use-module (gnu packages perl)
|
2018-08-30 16:53:24 +02:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2020-04-23 15:55:33 +02:00
|
|
|
|
#:use-module (gnu packages polkit)
|
|
|
|
|
|
#:use-module (gnu packages protobuf)
|
2022-03-12 20:14:00 +00:00
|
|
|
|
#:use-module (gnu packages pulseaudio)
|
2021-01-27 19:52:14 +01:00
|
|
|
|
#:use-module (gnu packages python)
|
2025-02-28 12:42:24 +03:00
|
|
|
|
#:use-module (gnu packages python-build)
|
2023-09-20 12:05:28 +02:00
|
|
|
|
#:use-module (gnu packages python-crypto)
|
2021-08-18 03:13:56 +02:00
|
|
|
|
#:use-module (gnu packages python-web)
|
|
|
|
|
|
#:use-module (gnu packages python-xyz)
|
2021-06-13 00:14:31 +02:00
|
|
|
|
#:use-module (gnu packages qt)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages scanner)
|
2025-11-21 07:10:08 -07:00
|
|
|
|
#:use-module (gnu packages sdl)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages security-token)
|
2022-12-03 10:21:45 +01:00
|
|
|
|
#:use-module (gnu packages readline)
|
2021-01-28 14:26:28 +01:00
|
|
|
|
#:use-module (gnu packages tls)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages video)
|
2021-08-30 19:33:53 -04:00
|
|
|
|
#:use-module (gnu packages virtualization)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (gnu packages vulkan)
|
2021-01-28 14:26:28 +01:00
|
|
|
|
#:use-module (gnu packages web)
|
2018-08-30 16:53:24 +02:00
|
|
|
|
#:use-module (gnu packages xdisorg)
|
2020-04-23 15:55:32 +02:00
|
|
|
|
#:use-module (gnu packages xml)
|
2018-08-30 16:53:24 +02:00
|
|
|
|
#:use-module (gnu packages xorg)
|
2021-06-13 00:14:31 +02:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2022-06-28 00:41:42 -04:00
|
|
|
|
#:use-module (guix build-system glib-or-gtk)
|
2018-08-30 16:53:24 +02:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2025-09-20 22:50:51 +03:00
|
|
|
|
#:use-module (guix build-system guile)
|
2021-10-17 00:45:06 +00:00
|
|
|
|
#:use-module (guix build-system meson)
|
2021-12-09 07:18:02 -05:00
|
|
|
|
#:use-module (guix build-system perl)
|
2023-09-20 12:05:28 +02:00
|
|
|
|
#:use-module (guix build-system pyproject)
|
2021-08-18 03:13:56 +02:00
|
|
|
|
#:use-module (guix build-system python)
|
2025-02-14 17:14:51 +01:00
|
|
|
|
#:use-module (guix build-system qt)
|
2018-08-30 16:53:24 +02:00
|
|
|
|
#:use-module (guix download)
|
2022-01-02 11:55:27 -05:00
|
|
|
|
#:use-module (guix gexp)
|
2018-10-23 20:42:17 +02:00
|
|
|
|
#:use-module (guix git-download)
|
2021-08-18 03:13:56 +02:00
|
|
|
|
#:use-module (guix svn-download)
|
2018-08-30 16:53:24 +02:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2020-06-02 20:29:12 +02:00
|
|
|
|
#:use-module (guix packages)
|
2022-01-11 22:56:14 +08:00
|
|
|
|
#:use-module (guix utils)
|
|
|
|
|
|
#:use-module (srfi srfi-1))
|
2018-08-30 16:53:24 +02:00
|
|
|
|
|
|
|
|
|
|
;; This is a module for packages related to physical hardware that don't (yet)
|
|
|
|
|
|
;; have a more specific home like gps.scm, security-token.scm, &c.
|
|
|
|
|
|
|
2022-04-06 14:36:49 +02:00
|
|
|
|
(define-public envytools
|
|
|
|
|
|
(let ((commit "9014a51b1436461c7b3b005bdae72bf4912f4e72")
|
|
|
|
|
|
(revision "1"))
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "envytools")
|
|
|
|
|
|
(version (git-version "0.1" revision commit))
|
|
|
|
|
|
(home-page "https://github.com/envytools/envytools")
|
|
|
|
|
|
(source (origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url home-page)
|
|
|
|
|
|
(commit commit)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32
|
|
|
|
|
|
"1lqh73yxd5jgv7b770m37zimzhyn4f3053jybkixkhvm93zka8vd"))))
|
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
|
(native-inputs (list bison flex pkg-config))
|
|
|
|
|
|
(inputs (list libxml2 python))
|
|
|
|
|
|
(synopsis "Reverse-engineering tools for Nvidia's proprietary GPU drivers")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package provides tools for exploring Nvidia's proprietary GPU
|
|
|
|
|
|
drivers, including an assembler and a disassembler for several GPU instruction
|
|
|
|
|
|
sets, and tools to deal with register databases.")
|
|
|
|
|
|
(license license:expat))))
|
|
|
|
|
|
|
2024-04-07 23:33:39 +02:00
|
|
|
|
(define-public brillo
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "brillo")
|
|
|
|
|
|
(version "1.4.12")
|
|
|
|
|
|
(source (origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://gitlab.com/cameronnemo/brillo")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32
|
|
|
|
|
|
"16n4j45mfhd1zxwbpl8342vyqf8rj3plhcl90xp02m46hn58v8bl"))
|
|
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:make-flags #~(list (string-append "CC="
|
|
|
|
|
|
#$(cc-for-target))
|
|
|
|
|
|
(string-append "AADIR=" #$output "/etc/apparmor.d")
|
|
|
|
|
|
(string-append "PREFIX=" #$output))
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'patch-udev-rules
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(substitute* "contrib/udev.in"
|
|
|
|
|
|
(("/bin/chgrp")
|
|
|
|
|
|
(string-append #$coreutils
|
|
|
|
|
|
"/bin/chgrp"))
|
|
|
|
|
|
(("/bin/chmod")
|
|
|
|
|
|
(string-append #$coreutils
|
|
|
|
|
|
"/bin/chmod")))))
|
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
|
;; Tests must be run on real hardware.
|
|
|
|
|
|
(delete 'check)
|
|
|
|
|
|
(add-after 'install 'install-udev-polkit
|
|
|
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
|
|
|
|
|
(map (lambda (target)
|
|
|
|
|
|
(apply invoke "make" target make-flags))
|
|
|
|
|
|
'("install.udev" "install.polkit")))))))
|
2025-02-26 21:28:55 +00:00
|
|
|
|
(native-inputs (list go-md2man))
|
2024-04-07 23:33:39 +02:00
|
|
|
|
(supported-systems
|
|
|
|
|
|
(lset-difference string=? %supported-systems %hurd-systems))
|
|
|
|
|
|
(home-page "https://gitlab.com/cameronnemo/brillo")
|
|
|
|
|
|
(synopsis "Controls the brightness of backlight and LED devices on Linux")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Brillo is a command line tool to control the brightness of backlight and
|
|
|
|
|
|
LED devices on Linux.
|
|
|
|
|
|
|
|
|
|
|
|
Notable features include:
|
|
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
|
|
|
|
|
|
|
@item Automatic best controller detection
|
|
|
|
|
|
@item Smooth transitions and natural brightness adjustments
|
|
|
|
|
|
@item Ability to save and restore brightness across boots
|
|
|
|
|
|
@item Directly using sysfs to set brightness without relying on X
|
|
|
|
|
|
@item Unprivileged access with no new setuid binaries
|
|
|
|
|
|
@item Containment with AppArmor
|
|
|
|
|
|
|
|
|
|
|
|
@end itemize")
|
|
|
|
|
|
(license (list license:bsd-0 license:gpl3+))))
|
|
|
|
|
|
|
2025-08-23 13:35:42 +03:00
|
|
|
|
(define-public deskflow
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "deskflow")
|
|
|
|
|
|
(version "1.23.0")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/deskflow/deskflow")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "0wgj0sjnxkfplpq05q2lqgag29l7bf4cqdw0xmr89ayrh1nyjxa1"))))
|
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:configure-flags
|
|
|
|
|
|
#~(list "-DCMAKE_SKIP_RPATH=ON")
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'patch-files
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(substitute* "deploy/linux/deploy.cmake"
|
|
|
|
|
|
(("message.FATAL_ERROR.*os-release.*")
|
|
|
|
|
|
"set(RELEASE_FILE_CONTENTS \"\")\n"))
|
|
|
|
|
|
(substitute* "src/lib/deskflow/unix/AppUtilUnix.cpp"
|
|
|
|
|
|
(("/usr/share/X11/xkb/rules/evdev.xml")
|
|
|
|
|
|
(string-append #$(this-package-input "xkeyboard-config")
|
|
|
|
|
|
"/share/X11/xkb/rules/evdev.xml")))))
|
|
|
|
|
|
(replace 'check
|
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
|
(when tests?
|
|
|
|
|
|
(setenv "QT_QPA_PLATFORM" "offscreen")
|
|
|
|
|
|
;; From the project GitHub actions: "Integration tests are
|
|
|
|
|
|
;; flakey by nature, make them optional". See:
|
|
|
|
|
|
;; <.github/workflows/continuous-integration.yml>.
|
|
|
|
|
|
(invoke "./bin/legacytests"))))
|
|
|
|
|
|
(add-after 'install 'wrap-executable
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(let ((qtbase #$(this-package-input "qtbase")))
|
|
|
|
|
|
(wrap-program (string-append #$output "/bin/deskflow")
|
|
|
|
|
|
`("QT_QPA_PLATFORM_PLUGIN_PATH" ":" =
|
|
|
|
|
|
(,(string-append qtbase "/lib/qt6/plugins/platforms"))))))))))
|
|
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list doxygen
|
|
|
|
|
|
googletest
|
|
|
|
|
|
sysprof
|
|
|
|
|
|
vulkan-headers
|
|
|
|
|
|
coreutils
|
|
|
|
|
|
help2man
|
|
|
|
|
|
pkg-config))
|
|
|
|
|
|
(inputs
|
|
|
|
|
|
(list bash-minimal
|
|
|
|
|
|
cli11
|
|
|
|
|
|
gdk-pixbuf
|
|
|
|
|
|
libei
|
|
|
|
|
|
libportal
|
|
|
|
|
|
libx11
|
|
|
|
|
|
libxi
|
|
|
|
|
|
libxinerama
|
|
|
|
|
|
libxkbcommon
|
|
|
|
|
|
libxkbfile
|
|
|
|
|
|
libxrandr
|
|
|
|
|
|
libxtst
|
|
|
|
|
|
libsm
|
|
|
|
|
|
libice
|
|
|
|
|
|
openssl
|
|
|
|
|
|
pugixml
|
|
|
|
|
|
python
|
|
|
|
|
|
qtbase
|
|
|
|
|
|
qtsvg
|
|
|
|
|
|
qttranslations
|
|
|
|
|
|
qttools
|
|
|
|
|
|
qtwayland
|
|
|
|
|
|
tomlplusplus
|
|
|
|
|
|
wayland
|
|
|
|
|
|
wayland-protocols
|
|
|
|
|
|
xkeyboard-config))
|
|
|
|
|
|
(home-page "https://deskflow.org/")
|
|
|
|
|
|
(synopsis "Share a single keyboard and mouse between multiple computers")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Deskflow is a keyboard and mouse sharing app. Use the keyboard,
|
|
|
|
|
|
mouse,or trackpad of one computer to control nearby computers, and work
|
|
|
|
|
|
seamlessly between them. It's like a software KVM (but without the video).
|
|
|
|
|
|
TLS encryption is enabled by default. It supports Wayland clipboard
|
|
|
|
|
|
sharing.")
|
|
|
|
|
|
(license license:gpl2)))
|
|
|
|
|
|
|
2025-09-24 10:31:00 +02:00
|
|
|
|
;; Added on 2025-09-24.
|
2025-10-16 17:08:05 +02:00
|
|
|
|
(define-deprecated-package barrier
|
|
|
|
|
|
deskflow)
|
2025-09-24 10:31:00 +02:00
|
|
|
|
|
2021-12-09 07:18:02 -05:00
|
|
|
|
(define-public hw-probe
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "hw-probe")
|
2022-12-11 01:00:02 +01:00
|
|
|
|
(version "1.6.5")
|
2021-12-09 07:18:02 -05:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri
|
|
|
|
|
|
(git-reference
|
|
|
|
|
|
(url "https://github.com/linuxhw/hw-probe")
|
|
|
|
|
|
(commit version)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2022-12-11 01:00:02 +01:00
|
|
|
|
(base32 "1sbp0scdi54zwgvb1s3ki3cw8xnxaxzm5cicq2nn3a2b6n1d4ljs"))))
|
2021-12-09 07:18:02 -05:00
|
|
|
|
(build-system perl-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:tests? #f ;no test suite
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'patch-source
|
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
|
;; Correct install prefix.
|
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
|
(("/usr") #$output))
|
|
|
|
|
|
|
|
|
|
|
|
(define preserve
|
|
|
|
|
|
;; Either not available in Guix or better left untouched.
|
|
|
|
|
|
'("$HWInfoCmd" "$CurlCmd" "$NvidiaSmi_Path" ;perl variables
|
|
|
|
|
|
"vblank_mode=0" "DRI_PRIME=1" ;environment variables
|
|
|
|
|
|
"sha512" ;fall-back to sha512sum
|
|
|
|
|
|
;; hp-probe comes from the full 'hplib' package, which would
|
|
|
|
|
|
;; pull Qt and increase the size of the closure by 600 MiB.
|
|
|
|
|
|
"hp-probe"
|
|
|
|
|
|
|
|
|
|
|
|
;; Android.
|
|
|
|
|
|
"apk" "getprop"
|
|
|
|
|
|
|
|
|
|
|
|
;; BSD-related.
|
|
|
|
|
|
"atactl" "acpiconf"
|
|
|
|
|
|
"bsdhwmon" "camcontrol"
|
|
|
|
|
|
"devinfo" "diskinfo" "disklabel"
|
|
|
|
|
|
"freebsd-version" "ghostbsd-version"
|
|
|
|
|
|
"hwstat" "kldstat" "mfiutil" "modstat" "mport"
|
|
|
|
|
|
"ofwdump" "opnsense-version"
|
|
|
|
|
|
"pcictl" "pcidump" "pciconf" "pkg" "pkg_info" "pkgin"
|
|
|
|
|
|
"start-hello" "sysinfo" "usbconfig" "usbdevs"
|
|
|
|
|
|
|
|
|
|
|
|
;; Package managers.
|
|
|
|
|
|
"eopkg" "pacman" "swupd"
|
|
|
|
|
|
|
|
|
|
|
|
;; Not packaged in Guix (TODO).
|
|
|
|
|
|
"apm" ;apmd
|
|
|
|
|
|
"drm_info" ;drm_info
|
|
|
|
|
|
"megactl" ;megactl
|
|
|
|
|
|
"lspnp" ;pnputils
|
|
|
|
|
|
"lsb_release" ;lsb-release
|
|
|
|
|
|
"lsinitrd" ;dracut
|
|
|
|
|
|
"optirun" ;bumblebee
|
|
|
|
|
|
"usbctl" ;usbctl
|
|
|
|
|
|
"monitor-get-edid" ;monitor-edid
|
|
|
|
|
|
"journalctl" "systemctl" "systemd-analyze" ;systemd
|
|
|
|
|
|
"superiotool" ;superiotool
|
|
|
|
|
|
"x86info" ;x86info
|
|
|
|
|
|
|
|
|
|
|
|
;; Other.
|
|
|
|
|
|
"arcconf" ;proprietary
|
|
|
|
|
|
"config" ;unknown origin (Linux-related)
|
|
|
|
|
|
"dkms" ;unknown origin (Linux-related)
|
|
|
|
|
|
"amdconfig" "fglrxinfo" ;proprietary/obsolete
|
|
|
|
|
|
"geom" ;unknown origin
|
|
|
|
|
|
"hciconfig" "hcitool" ;deprecated from bluez
|
|
|
|
|
|
"nm-tool")) ;replaced by nmcli in network-manager
|
|
|
|
|
|
|
|
|
|
|
|
(substitute* "hw-probe.pl"
|
|
|
|
|
|
(("(check|find|run)Cmd\\(\"([^\" ]+)" _ prefix command)
|
|
|
|
|
|
(string-append
|
|
|
|
|
|
prefix "Cmd(\""
|
|
|
|
|
|
(if (member command preserve)
|
|
|
|
|
|
command
|
|
|
|
|
|
(or (false-if-exception
|
|
|
|
|
|
(search-input-file
|
|
|
|
|
|
inputs (string-append "bin/" command)))
|
|
|
|
|
|
(search-input-file
|
|
|
|
|
|
inputs (string-append "sbin/" command))))))
|
|
|
|
|
|
(("(my \\$HWInfoCmd = \")hwinfo" _ head)
|
|
|
|
|
|
(string-append head (search-input-file inputs "sbin/hwinfo")))
|
|
|
|
|
|
(("(my \\$CurlCmd = \")curl" _ head)
|
|
|
|
|
|
(string-append head (search-input-file inputs "bin/curl")))
|
|
|
|
|
|
(("(\\$LsblkCmd = \")lsblk" _ head)
|
|
|
|
|
|
(string-append head (search-input-file inputs "bin/lsblk")))
|
|
|
|
|
|
(("(\\$SmartctlCmd = \")smartctl" _ head)
|
|
|
|
|
|
(string-append head (search-input-file inputs "sbin/smartctl")))
|
|
|
|
|
|
(("(my \\$FindmntCmd = \")findmnt" _ head)
|
|
|
|
|
|
(string-append head (search-input-file inputs "bin/findmnt")))
|
|
|
|
|
|
(("(\\$DDCUtilCmd = \")ddcutil" _ head)
|
|
|
|
|
|
(string-append head (search-input-file inputs "bin/ddcutil")))
|
|
|
|
|
|
(("(my \\$VaInfoCmd = \")vainfo" _ head)
|
|
|
|
|
|
(string-append head (search-input-file inputs "bin/vainfo")))
|
|
|
|
|
|
(("(\\$CheckHddCmd = \")hdparm" _ head)
|
|
|
|
|
|
(string-append head (search-input-file inputs "sbin/hdparm")))
|
|
|
|
|
|
(("(\\$USE_DIGEST_ALT = \")sha512sum" _ head)
|
|
|
|
|
|
(string-append head (search-input-file inputs "bin/sha512sum"))))))
|
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
|
(add-after 'install 'wrap
|
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
|
(define hw-probe (search-input-file outputs "bin/hw-probe"))
|
|
|
|
|
|
;; 'NeedProgs' core utilities are specially checked for
|
|
|
|
|
|
;; availability. It's easier to wrap them in PATH than patching
|
|
|
|
|
|
;; their references.
|
|
|
|
|
|
(define need-progs (list "sbin/dmidecode" "sbin/smartctl"
|
2024-04-30 16:21:04 +01:00
|
|
|
|
"bin/lspci" "bin/lsusb" "bin/edid-decode"))
|
2021-12-09 07:18:02 -05:00
|
|
|
|
(wrap-script hw-probe
|
|
|
|
|
|
(list "PERL5LIB" 'prefix (list (getenv "PERL5LIB")))
|
|
|
|
|
|
(list "PATH" 'prefix
|
|
|
|
|
|
(map (lambda (command)
|
|
|
|
|
|
(dirname (search-input-file inputs command)))
|
|
|
|
|
|
need-progs))))))))
|
|
|
|
|
|
(inputs
|
|
|
|
|
|
(list acpi
|
|
|
|
|
|
acpica
|
|
|
|
|
|
alsa-utils
|
|
|
|
|
|
avahi
|
|
|
|
|
|
bash-minimal
|
|
|
|
|
|
coreutils
|
|
|
|
|
|
cpuid
|
|
|
|
|
|
cpupower
|
|
|
|
|
|
curl
|
|
|
|
|
|
ddcutil
|
|
|
|
|
|
dmidecode
|
|
|
|
|
|
dpkg
|
2022-12-11 01:00:02 +01:00
|
|
|
|
edac-utils
|
2021-12-09 07:18:02 -05:00
|
|
|
|
edid-decode
|
|
|
|
|
|
efibootmgr
|
|
|
|
|
|
efivar
|
|
|
|
|
|
ethtool
|
|
|
|
|
|
eudev
|
|
|
|
|
|
findutils
|
|
|
|
|
|
gpart
|
|
|
|
|
|
grep
|
|
|
|
|
|
guile-3.0 ;for wrap-script
|
|
|
|
|
|
hddtemp
|
|
|
|
|
|
hdparm
|
|
|
|
|
|
i2c-tools
|
|
|
|
|
|
inxi
|
|
|
|
|
|
iproute
|
|
|
|
|
|
iw
|
|
|
|
|
|
libva-utils
|
|
|
|
|
|
lm-sensors
|
|
|
|
|
|
mcelog
|
|
|
|
|
|
memtester
|
|
|
|
|
|
mesa-utils
|
|
|
|
|
|
modem-manager
|
|
|
|
|
|
module-init-tools
|
|
|
|
|
|
neofetch
|
|
|
|
|
|
net-tools
|
|
|
|
|
|
network-manager
|
|
|
|
|
|
numactl
|
|
|
|
|
|
nvme-cli
|
|
|
|
|
|
opensc
|
|
|
|
|
|
openssl
|
|
|
|
|
|
p7zip
|
|
|
|
|
|
pciutils
|
|
|
|
|
|
perl-data-dumper
|
|
|
|
|
|
perl-digest-sha
|
|
|
|
|
|
perl-libwww
|
|
|
|
|
|
procps
|
|
|
|
|
|
psmisc ;for pstree
|
|
|
|
|
|
rpm
|
2025-06-12 14:05:45 +02:00
|
|
|
|
sane
|
2021-12-09 07:18:02 -05:00
|
|
|
|
smartmontools
|
|
|
|
|
|
sysstat
|
|
|
|
|
|
upower
|
|
|
|
|
|
usbutils
|
|
|
|
|
|
util-linux
|
|
|
|
|
|
wireless-tools
|
|
|
|
|
|
vdpauinfo
|
|
|
|
|
|
vulkan-tools
|
|
|
|
|
|
xdpyinfo
|
|
|
|
|
|
xinput
|
|
|
|
|
|
xrandr
|
|
|
|
|
|
xvinfo))
|
|
|
|
|
|
(propagated-inputs (list hwinfo))
|
|
|
|
|
|
(home-page "https://linux-hardware.org")
|
|
|
|
|
|
(synopsis "Hardware Probe")
|
|
|
|
|
|
(description "Hardware Probe is a tool to probe for hardware, check its
|
|
|
|
|
|
operability and find drivers.")
|
|
|
|
|
|
(license (list license:lgpl2.1+ license:bsd-4)))) ;dual-licensed
|
|
|
|
|
|
|
2021-08-30 19:33:53 -04:00
|
|
|
|
(define-public hwinfo
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "hwinfo")
|
2023-07-16 02:00:02 +02:00
|
|
|
|
(version "23.2")
|
2021-08-30 19:33:53 -04:00
|
|
|
|
(home-page "https://github.com/openSUSE/hwinfo")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri
|
|
|
|
|
|
(git-reference
|
|
|
|
|
|
(url home-page)
|
|
|
|
|
|
(commit version)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2023-07-16 02:00:02 +02:00
|
|
|
|
(base32 "0d9nhhi64d3i9x1bh3ksj0h5z2p4pwa0z88bc0jra9s39nf6q230"))
|
2021-08-30 19:33:53 -04:00
|
|
|
|
(modules
|
|
|
|
|
|
'((guix build utils)))
|
|
|
|
|
|
(snippet
|
2023-07-16 02:00:01 +02:00
|
|
|
|
#~(begin
|
|
|
|
|
|
;; Remove git2log program file.
|
|
|
|
|
|
(delete-file "git2log")
|
|
|
|
|
|
;; Remove variables that depend on git2log.
|
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
|
(("GIT2LOG.*\\:=.*$") "")
|
|
|
|
|
|
(("GITDEPS.*\\:=.*$") "")
|
|
|
|
|
|
(("BRANCH.*\\:=.*$") ""))
|
|
|
|
|
|
;; Create version file.
|
|
|
|
|
|
(call-with-output-file "VERSION"
|
|
|
|
|
|
(lambda (port) (format port #$version)))))))
|
2021-08-30 19:33:53 -04:00
|
|
|
|
(build-system gnu-build-system)
|
2022-05-29 02:00:00 +02:00
|
|
|
|
(outputs '("out" "lib" "doc"))
|
2021-08-30 19:33:53 -04:00
|
|
|
|
(arguments
|
2023-07-16 02:00:01 +02:00
|
|
|
|
(list
|
|
|
|
|
|
#:tests? #f ; no test-suite available
|
2023-07-16 02:00:01 +02:00
|
|
|
|
#:make-flags
|
|
|
|
|
|
#~(list (string-append "CC=" #$(cc-for-target))
|
|
|
|
|
|
(string-append "LIBDIR=" #$output:lib "/lib")
|
|
|
|
|
|
(string-append "VERSION=" #$version))
|
2023-07-16 02:00:01 +02:00
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'patch
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(let ((include (string-append #$output:lib "/include"))
|
|
|
|
|
|
(lib (string-append #$output:lib "/lib"))
|
|
|
|
|
|
(sbin (string-append #$output "/sbin"))
|
|
|
|
|
|
(share (string-append #$output "/share"))
|
|
|
|
|
|
(doc (string-append #$output:doc "/share/doc")))
|
|
|
|
|
|
;; Generate HTML documentation in the "doc" output.
|
|
|
|
|
|
(mkdir-p doc)
|
|
|
|
|
|
(substitute* "doc/libhd.doxy"
|
|
|
|
|
|
(("OUTPUT_DIRECTORY.*=.*libhd")
|
|
|
|
|
|
(string-append "OUTPUT_DIRECTORY = " doc "/libhd")))
|
|
|
|
|
|
;; Correct values of the version and install directories.
|
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
|
(("/usr/include") include)
|
|
|
|
|
|
(("/(usr|var)/(lib|lib64)") lib)
|
|
|
|
|
|
(("/usr/sbin") sbin)
|
|
|
|
|
|
(("/usr/share") share)
|
|
|
|
|
|
(("\\$\\(DESTDIR\\)/sbin ") ""))
|
|
|
|
|
|
;; Add the "lib" output to the run-path.
|
|
|
|
|
|
(substitute* "Makefile.common"
|
|
|
|
|
|
(("-Lsrc")
|
|
|
|
|
|
(string-append "-Lsrc " "-Wl,-rpath=" lib)))
|
|
|
|
|
|
;; Correct program name of the lexical analyzer.
|
|
|
|
|
|
(substitute* "src/isdn/cdb/Makefile"
|
|
|
|
|
|
(("lex isdn_cdb.lex") "flex isdn_cdb.lex"))
|
|
|
|
|
|
;; Patch pkg-config file to point to the "lib" output.
|
|
|
|
|
|
(substitute* "hwinfo.pc.in"
|
|
|
|
|
|
(("/usr") #$output:lib)))))
|
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
|
(replace 'build
|
|
|
|
|
|
(lambda* (#:key make-flags #:allow-other-keys)
|
2023-07-16 02:00:01 +02:00
|
|
|
|
(apply invoke "make" "shared" make-flags)
|
|
|
|
|
|
(apply invoke "make" "doc" make-flags)))
|
2023-07-16 02:00:01 +02:00
|
|
|
|
(add-after 'install 'install-man-pages
|
|
|
|
|
|
(lambda _
|
2023-07-16 02:00:00 +02:00
|
|
|
|
(for-each
|
|
|
|
|
|
(lambda (file)
|
|
|
|
|
|
(install-file file (string-append #$output "/share/man/man"
|
|
|
|
|
|
(string-take-right file 1))))
|
|
|
|
|
|
(find-files "doc" "\\.[0-9]$")))))))
|
2021-08-30 19:33:53 -04:00
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list doxygen flex perl pkg-config))
|
2021-08-30 19:33:53 -04:00
|
|
|
|
(inputs
|
2023-07-16 02:00:01 +02:00
|
|
|
|
(list libx86emu `(,util-linux "lib")))
|
2021-08-30 19:33:53 -04:00
|
|
|
|
(synopsis "Hardware information tool")
|
|
|
|
|
|
(description "HwInfo is used to probe for the hardware present in the system.
|
|
|
|
|
|
It can be used to generate a system overview log which can be later used for
|
|
|
|
|
|
support.")
|
|
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
|
|
2022-03-12 20:14:00 +00:00
|
|
|
|
(define-public ckb-next
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "ckb-next")
|
2025-05-29 03:45:14 +02:00
|
|
|
|
(version "0.6.2")
|
2022-03-12 20:14:00 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/ckb-next/ckb-next")
|
2025-02-17 05:45:04 +00:00
|
|
|
|
(commit (string-append "v" version))))
|
2022-03-12 20:14:00 +00:00
|
|
|
|
(sha256
|
|
|
|
|
|
(base32
|
2025-05-29 03:45:14 +02:00
|
|
|
|
"1mdmimxifzajyv7n75zrnkn1fi0v46vbas028da2mncy8yjla3cl"))
|
2022-03-12 20:14:00 +00:00
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
`(#:modules ((guix build cmake-build-system) (guix build qt-utils)
|
|
|
|
|
|
(guix build utils))
|
|
|
|
|
|
#:imported-modules (,@%cmake-build-system-modules
|
|
|
|
|
|
(guix build qt-utils))
|
|
|
|
|
|
#:tests? #f
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
|
(add-before 'build 'patch-lib-udev
|
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
|
(substitute* "src/daemon/cmake_install.cmake"
|
|
|
|
|
|
(("/lib/udev")
|
|
|
|
|
|
(string-append (assoc-ref outputs "out")
|
|
|
|
|
|
"/lib/udev")))))
|
|
|
|
|
|
(add-after 'install 'wrap-qt
|
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
|
(wrap-qt-program "ckb-next"
|
|
|
|
|
|
#:output out
|
|
|
|
|
|
#:inputs inputs)))))))
|
2022-07-19 16:52:05 -04:00
|
|
|
|
(native-inputs (list qttools-5 pkg-config))
|
2022-03-12 20:14:00 +00:00
|
|
|
|
(inputs (list qtbase-5
|
|
|
|
|
|
zlib
|
|
|
|
|
|
libdbusmenu-qt
|
2025-05-12 14:50:13 +02:00
|
|
|
|
quazip-5
|
2022-03-12 20:14:00 +00:00
|
|
|
|
pulseaudio
|
|
|
|
|
|
libxcb
|
|
|
|
|
|
xcb-util-wm
|
|
|
|
|
|
qtx11extras
|
|
|
|
|
|
eudev
|
|
|
|
|
|
bash-minimal))
|
|
|
|
|
|
(home-page "https://github.com/ckb-next/ckb-next")
|
|
|
|
|
|
(synopsis "Driver for Corsair keyboards and mice")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"ckb-next is a driver for Corsair keyboards and mice. It aims to bring
|
|
|
|
|
|
the features of Corsair's proprietary software to Linux-based operating
|
|
|
|
|
|
systems. It already supports much of the same functionality, including full
|
|
|
|
|
|
RGB animations.")
|
2025-02-17 05:45:04 +00:00
|
|
|
|
(license license:gpl2)))
|
2022-03-12 20:14:00 +00:00
|
|
|
|
|
2018-08-30 16:53:24 +02:00
|
|
|
|
(define-public ddcutil
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "ddcutil")
|
2024-12-18 11:56:25 +08:00
|
|
|
|
(version "2.1.4")
|
2018-08-30 16:53:24 +02:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
2024-12-18 11:56:25 +08:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/rockowitz/ddcutil")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-08-30 16:53:24 +02:00
|
|
|
|
(sha256
|
2024-12-18 11:56:25 +08:00
|
|
|
|
(base32 "0wk82cdg7vddk6pbnn6qq3p71j4bppq13is2ck40glig08ax1bg5"))))
|
2018-08-30 16:53:24 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(native-inputs
|
2024-12-18 11:56:25 +08:00
|
|
|
|
(list autoconf automake libtool pkg-config))
|
2018-08-30 16:53:24 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list eudev
|
|
|
|
|
|
glib
|
2024-12-18 11:56:25 +08:00
|
|
|
|
jansson
|
2022-02-07 14:10:49 +02:00
|
|
|
|
kmod
|
|
|
|
|
|
i2c-tools
|
2022-12-28 22:55:00 -05:00
|
|
|
|
libdrm ;enhanced diagnostics
|
|
|
|
|
|
libusb ;support USB monitors
|
|
|
|
|
|
libx11 ;enhanced diagnostics
|
2021-12-13 17:18:24 +01:00
|
|
|
|
libxrandr
|
|
|
|
|
|
zlib))
|
2018-08-30 16:53:24 +02:00
|
|
|
|
(home-page "https://www.ddcutil.com/")
|
|
|
|
|
|
(synopsis "Control external monitor settings")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"ddcutil can query and modify most external monitors' settings, such as
|
|
|
|
|
|
brightness, colour levels, and input sources. Generally speaking, any setting
|
|
|
|
|
|
that can be changed by pressing buttons on the monitor can be modified by
|
|
|
|
|
|
ddcutil.
|
|
|
|
|
|
|
|
|
|
|
|
ddcutil communicates directly with monitors implementing the Monitor Control
|
|
|
|
|
|
Command Set (@dfn{MCCS}). It usually does so through the the Display Data
|
|
|
|
|
|
Channel Command Interface (@dfn{DDC/CI}) protocol on the I2C bus, but can also
|
|
|
|
|
|
communicate over USB as per the USB Monitor Control Class Specification.
|
|
|
|
|
|
|
|
|
|
|
|
One particular use case is in colour profile management. Monitor calibration
|
|
|
|
|
|
is relative to the monitor colour settings currently in effect, e.g. red gain.
|
|
|
|
|
|
ddcutil allows colour-related settings to be saved at the time a monitor is
|
2022-12-28 22:55:00 -05:00
|
|
|
|
calibrated, and restored when the calibration is applied.
|
|
|
|
|
|
|
|
|
|
|
|
This package includes udev rules that can be used by adding this package to
|
|
|
|
|
|
the @code{rules} field of the @code{udev-configuration} record. It gives
|
|
|
|
|
|
read/write access to i2c devices to users in the @samp{i2c} group.")
|
2018-08-30 16:53:24 +02:00
|
|
|
|
(license (list license:bsd-3 ; FindDDCUtil.cmake
|
|
|
|
|
|
license:gpl2+)))) ; everything else
|
2018-08-30 17:50:48 +02:00
|
|
|
|
|
2021-06-13 00:14:31 +02:00
|
|
|
|
(define-public ddcui
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "ddcui")
|
2024-12-18 11:56:26 +08:00
|
|
|
|
(version "0.5.4")
|
2021-06-13 00:14:31 +02:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/rockowitz/ddcui")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2024-12-18 11:56:26 +08:00
|
|
|
|
(base32 "1hq19gdy9ybraclkqvv1nlf46irql5b6wrc1y6wi0ihkqly20vgz"))))
|
2025-02-16 12:52:58 +01:00
|
|
|
|
(build-system qt-build-system)
|
2021-06-13 00:14:31 +02:00
|
|
|
|
(arguments
|
2022-10-21 22:43:55 -04:00
|
|
|
|
(list #:tests? #f)) ; No test suite
|
2021-06-13 00:14:31 +02:00
|
|
|
|
(native-inputs
|
2022-07-19 16:52:05 -04:00
|
|
|
|
(list pkg-config qttools-5))
|
2021-06-13 00:14:31 +02:00
|
|
|
|
(inputs
|
2025-02-16 12:52:58 +01:00
|
|
|
|
(list ddcutil glib qtbase-5 qtwayland-5))
|
2021-06-13 00:14:31 +02:00
|
|
|
|
(home-page "https://www.ddcutil.com/")
|
|
|
|
|
|
(synopsis "Graphical user interface for ddcutil")
|
|
|
|
|
|
(description "ddcui is a graphical user interface for ddcutil, implemented
|
|
|
|
|
|
using Qt. It provide a dynamic way to inspect and configure external monitors
|
|
|
|
|
|
through the Display Data Channel Command Interface (@dfn{DDC/CI}) protocol.")
|
|
|
|
|
|
(license (list license:gpl2+))))
|
|
|
|
|
|
|
2020-04-28 11:53:23 +02:00
|
|
|
|
(define-public edid-decode
|
2024-04-24 08:48:40 +02:00
|
|
|
|
(let ((commit "3d635499e4aca3319f0796ba787213c981c5a770") ; 2024-04-02
|
2020-04-28 11:53:23 +02:00
|
|
|
|
(revision "1"))
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "edid-decode")
|
|
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "git://linuxtv.org/edid-decode.git")
|
|
|
|
|
|
(commit commit)))
|
|
|
|
|
|
(sha256
|
2024-04-24 08:48:40 +02:00
|
|
|
|
(base32 "18s2pwm45mzgm0rfw3wf0m349p6381i6iwbylxypizqcsvgwxb3f"))))
|
2020-04-28 11:53:23 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
`(#:tests? #f ; No test suite
|
|
|
|
|
|
#:make-flags
|
|
|
|
|
|
(list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
|
|
|
|
|
|
"bindir=/bin" "mandir=/share/man")
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'fix-cross-compilation
|
|
|
|
|
|
(lambda* (#:key native-inputs target #:allow-other-keys)
|
|
|
|
|
|
(when target
|
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
|
(("\\$\\(CXX\\)")
|
|
|
|
|
|
(string-append target "-g++"))))
|
|
|
|
|
|
#t))
|
|
|
|
|
|
(delete 'configure))))
|
|
|
|
|
|
(home-page "https://git.linuxtv.org/edid-decode.git/")
|
|
|
|
|
|
(synopsis "Decode @dfn{EDID} data in human-readable format")
|
|
|
|
|
|
(description "edid-decode decodes @dfn{EDID} monitor description data in
|
|
|
|
|
|
human-readable format and checks if it conforms to the standards.")
|
|
|
|
|
|
(license license:expat))))
|
|
|
|
|
|
|
2022-06-01 16:43:22 -04:00
|
|
|
|
(define-public h-client
|
2022-06-14 00:35:06 -04:00
|
|
|
|
(let ((commit "e6c78b16e034ccf78ae9cb4c29268c2f57a30bfc")
|
|
|
|
|
|
(revision "1"))
|
2022-06-01 16:43:22 -04:00
|
|
|
|
(package
|
|
|
|
|
|
(name "h-client")
|
|
|
|
|
|
(version (git-version "0.0a0" revision commit))
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
2023-07-29 12:00:47 -04:00
|
|
|
|
(url "https://git.savannah.gnu.org/git/h-client.git/")
|
2022-06-01 16:43:22 -04:00
|
|
|
|
(commit commit)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2022-06-14 00:35:06 -04:00
|
|
|
|
(base32 "0hm86d51kj5r3yxq4c23aa57cs8igz3wrkbjn20z4frx75rpf46m"))))
|
2022-06-01 16:43:22 -04:00
|
|
|
|
(build-system python-build-system)
|
2022-06-28 00:41:42 -04:00
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:imported-modules `(,@%python-build-system-modules
|
|
|
|
|
|
,@%glib-or-gtk-build-system-modules)
|
|
|
|
|
|
#:modules '(((guix build glib-or-gtk-build-system) #:prefix glib:)
|
|
|
|
|
|
(guix build python-build-system)
|
|
|
|
|
|
(guix build utils))
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'generate-gdk-pixbuf-loaders-cache-file
|
|
|
|
|
|
(assoc-ref glib:%standard-phases
|
|
|
|
|
|
'generate-gdk-pixbuf-loaders-cache-file))
|
|
|
|
|
|
(add-after 'install 'glib-or-gtk-compile-schemas
|
|
|
|
|
|
(assoc-ref glib:%standard-phases 'glib-or-gtk-compile-schemas))
|
|
|
|
|
|
(add-after 'install 'glib-or-gtk-wrap
|
|
|
|
|
|
(assoc-ref glib:%standard-phases 'glib-or-gtk-wrap))
|
|
|
|
|
|
(add-after 'glib-or-gtk-wrap 'wrap-more
|
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
|
(wrap-script (search-input-file outputs "bin/h-client")
|
|
|
|
|
|
;; Wrap GI_TYPELIB_PATH to avoid the error "ValueError:
|
|
|
|
|
|
;; Namespace GdkPixbuf not available".
|
|
|
|
|
|
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))
|
|
|
|
|
|
`("PATH" = (,(dirname (search-input-file
|
2023-07-28 09:01:11 -04:00
|
|
|
|
inputs "bin/lspci"))
|
2022-06-28 00:41:42 -04:00
|
|
|
|
,(dirname (search-input-file
|
|
|
|
|
|
inputs "bin/lsusb"))))))))))
|
2022-06-01 16:43:22 -04:00
|
|
|
|
(inputs
|
|
|
|
|
|
(list gdk-pixbuf
|
2022-06-28 00:41:42 -04:00
|
|
|
|
gobject-introspection ;for GI_TYPELIB_PATH
|
|
|
|
|
|
guile-3.0
|
2022-06-01 16:43:22 -04:00
|
|
|
|
gtk+
|
|
|
|
|
|
pciutils
|
|
|
|
|
|
python-pycurl
|
|
|
|
|
|
python-pygobject
|
|
|
|
|
|
usbutils))
|
|
|
|
|
|
(synopsis "Graphical client for the h-node hardware database project")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"The h-node project (https://www.h-node.org) aims to build a database of
|
|
|
|
|
|
hardware that works with fully free operating systems. h-client is a GTK+
|
|
|
|
|
|
graphical client that is able to retrieves information on the hardware inside
|
|
|
|
|
|
the computer it's running on, and on peripherals connected to it, and helps
|
|
|
|
|
|
you submit that information to the h-node project along with whether the
|
|
|
|
|
|
hardware works with a fully free operating system or not.")
|
|
|
|
|
|
(home-page "https://savannah.nongnu.org/projects/h-source/")
|
|
|
|
|
|
(license license:gpl3+))))
|
|
|
|
|
|
|
2021-12-26 11:13:29 -05:00
|
|
|
|
(define-public headsetcontrol
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "headsetcontrol")
|
2023-10-03 14:06:45 -04:00
|
|
|
|
(version "2.7.0")
|
2021-12-26 11:13:29 -05:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/Sapd/HeadsetControl")
|
|
|
|
|
|
(commit version)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2023-10-03 14:06:45 -04:00
|
|
|
|
(base32 "0l8bvdaj70s6qf8pds8bl367355j9lqb9mvc4lskz0n4ya8xs2dl"))))
|
2021-12-26 11:13:29 -05:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
|
(inputs
|
|
|
|
|
|
(list hidapi))
|
|
|
|
|
|
(home-page "https://github.com/Sapd/HeadsetControl")
|
|
|
|
|
|
(synopsis "Sidetone and Battery status for USB headsets")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Headsetcontrol is a tool to control certain aspects of USB-connected
|
|
|
|
|
|
headsets. Currently, support is provided for adjusting sidetone, getting
|
|
|
|
|
|
battery state, controlling LEDs, and setting the inactive time.")
|
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
|
2022-01-02 11:38:03 -05:00
|
|
|
|
(define-public hueplusplus
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "hueplusplus")
|
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/enwi/hueplusplus")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "1jy8m2a0h0kf0aw8jbniz069q9j7cx67b1zlv2vz1ymq921qk0pm"))
|
|
|
|
|
|
(patches
|
|
|
|
|
|
(search-patches "hueplusplus-mbedtls.patch"))))
|
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
`(#:tests? #f)) ;; Tests require Google's gtest and gmock
|
|
|
|
|
|
(inputs
|
2023-05-27 19:27:33 +08:00
|
|
|
|
(list mbedtls-lts))
|
2022-01-02 11:38:03 -05:00
|
|
|
|
(synopsis "C++ library to control Philips Hue lights")
|
|
|
|
|
|
(description "Hueplusplus is a library for controlling Philips Hue lights.
|
|
|
|
|
|
Features:
|
|
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
|
@item find bridges with SSDP or set an ip manually
|
|
|
|
|
|
@item all common light functions (brightness, color, temperature)
|
|
|
|
|
|
@item extended @code{alert()} functions, which alert in a specific
|
|
|
|
|
|
color (good for notifications)
|
|
|
|
|
|
@item supports sensors, rules, groups, scenes and schedules
|
|
|
|
|
|
@item streaming with entertainment mode
|
|
|
|
|
|
@item documented with doxygen
|
|
|
|
|
|
@end itemize")
|
|
|
|
|
|
(home-page "https://github.com/enwi/hueplusplus")
|
|
|
|
|
|
(license license:lgpl3+)))
|
|
|
|
|
|
|
2025-08-04 23:58:23 +01:00
|
|
|
|
(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)))
|
|
|
|
|
|
|
2021-06-29 01:06:53 +02:00
|
|
|
|
(define-public i7z
|
|
|
|
|
|
(let ((revision "0")
|
|
|
|
|
|
(commit "1a41ff13db747e962456ddbb5ccb2b7fc43ca0cb"))
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "i7z")
|
|
|
|
|
|
(version (git-version "0.28" revision commit))
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/afontenot/i7z")
|
|
|
|
|
|
(commit commit)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "0jxm63a8y1mfl1sa4mzzfs3bgnym6achj1yc0jglmp05xal16lm1"))
|
2021-12-14 00:57:55 +01:00
|
|
|
|
(patches
|
|
|
|
|
|
(search-patches "i7z-gcc-10.patch"))
|
2021-06-29 01:06:53 +02:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
|
(snippet
|
|
|
|
|
|
'(begin
|
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
|
(list "src/GUI"
|
|
|
|
|
|
"src/perfmon-i7z"
|
|
|
|
|
|
"scripts"))))))
|
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
`(#:make-flags
|
|
|
|
|
|
(list (string-append "prefix=" (assoc-ref %outputs "out"))
|
|
|
|
|
|
(string-append "CC=" ,(cc-for-target)))
|
|
|
|
|
|
#:tests? #f ; no test suite
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
|
(delete 'configure)))) ; no configure script
|
|
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list ncurses))
|
2021-06-29 01:06:53 +02:00
|
|
|
|
(home-page "https://github.com/afontenot/i7z")
|
|
|
|
|
|
(synopsis "Thermal and C-state reporting on older Intel Core CPUs")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"The @command{i7z} utility accurately measures the current frequency
|
|
|
|
|
|
and temperature of older Intel Core (i3, i5, and i7) processors including the
|
|
|
|
|
|
Nehalem, Sandy Bridge, and Ivy Bridge generations. Reliable support for newer
|
|
|
|
|
|
CPUs is not guaranteed, as this package has not seen significant development
|
|
|
|
|
|
since 2013.
|
|
|
|
|
|
|
|
|
|
|
|
If your processor is supported, you'll get detailed reports on Turbo Boost and
|
|
|
|
|
|
clock multipliers, core voltage, and time spent in different C-states. This
|
|
|
|
|
|
information can be viewed in real time and/or logged to a file.")
|
2021-06-30 13:00:09 +02:00
|
|
|
|
(supported-systems (list "x86_64-linux"))
|
2021-06-29 01:06:53 +02:00
|
|
|
|
(license license:gpl2))))
|
|
|
|
|
|
|
2021-01-27 19:52:14 +01:00
|
|
|
|
(define-public libsmbios
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "libsmbios")
|
|
|
|
|
|
(version "2.4.3")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri
|
|
|
|
|
|
(git-reference
|
|
|
|
|
|
(url (string-append "https://github.com/dell/" name))
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "0krwwydyvb9224r884y1mlmzyxhlfrcqw73vi1j8787rl0gl5a2i"))))
|
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(native-inputs
|
|
|
|
|
|
`(("autoconf" ,autoconf)
|
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
|
("gettext" ,gettext-minimal)
|
|
|
|
|
|
("libtool" ,libtool)
|
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
|
("python" ,python)))
|
|
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list libxml2))
|
2021-01-27 19:52:14 +01:00
|
|
|
|
(arguments
|
|
|
|
|
|
`(#:phases
|
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
|
(replace 'bootstrap
|
|
|
|
|
|
(lambda _ (invoke "autoreconf" "-vfi"))))))
|
|
|
|
|
|
(synopsis "Library for interacting with Dell SMBIOS tables")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"libsmbios provides a library to interface with the SMBIOS tables. It
|
|
|
|
|
|
also provides extensions for proprietary methods of interfacing with Dell
|
|
|
|
|
|
specific SMBIOS tables.")
|
|
|
|
|
|
(home-page "https://github.com/dell/libsmbios")
|
2024-01-10 12:16:54 -05:00
|
|
|
|
(supported-systems (list "i686-linux" "x86_64-linux"))
|
2021-01-27 19:52:14 +01:00
|
|
|
|
(license
|
2021-01-28 16:32:54 +01:00
|
|
|
|
(list license:osl2.1 license:gpl2+ license:bsd-3 license:boost1.0))))
|
2021-01-27 19:52:14 +01:00
|
|
|
|
|
2023-09-20 12:05:28 +02:00
|
|
|
|
(define-public liquidctl
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "liquidctl")
|
2025-11-27 19:40:56 +00:00
|
|
|
|
(version "1.15.0")
|
2023-09-20 12:05:28 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/liquidctl/liquidctl")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32
|
2025-11-27 19:40:56 +00:00
|
|
|
|
"1cj4ag6h08clklqg63wpw1vvxfjx37a7ib081dd1z5bl0580zxl9"))))
|
2023-09-20 12:05:28 +02:00
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list #:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-before 'check 'set-runtime-dir
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(setenv "XDG_RUNTIME_DIR" "/tmp"))))))
|
2025-11-27 19:40:56 +00:00
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list python-pytest
|
|
|
|
|
|
python-setuptools))
|
2023-09-20 12:05:28 +02:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list python-colorlog
|
|
|
|
|
|
python-crcmod
|
|
|
|
|
|
python-docopt
|
|
|
|
|
|
python-hidapi
|
|
|
|
|
|
python-pillow
|
|
|
|
|
|
python-pyusb
|
|
|
|
|
|
python-smbus))
|
|
|
|
|
|
(home-page "https://github.com/liquidctl/liquidctl")
|
|
|
|
|
|
(synopsis "Drivers and tools for liquid cooling equipment")
|
|
|
|
|
|
(description "Liquidctl is a package with tools, drivers and a Python
|
|
|
|
|
|
library to work with liquid cooling equipment such as @acronym{AIO, All-In-One}
|
|
|
|
|
|
coolers, fan controllers and other devices.")
|
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
|
2018-10-01 12:36:50 +02:00
|
|
|
|
;; Distinct from memtest86, which is obsolete.
|
|
|
|
|
|
(define-public memtest86+
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "memtest86+")
|
2024-12-25 22:43:47 +01:00
|
|
|
|
(version "7.20")
|
2018-10-01 12:36:50 +02:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
2022-10-23 02:00:02 +02:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/memtest86plus/memtest86plus")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-10-01 12:36:50 +02:00
|
|
|
|
(sha256
|
2024-12-25 22:43:47 +01:00
|
|
|
|
(base32 "0ifly0jbq4xy81mc6k621a8rr0ipjzn7783v2b535s1s55xrz7i5"))
|
2022-10-23 02:00:41 +02:00
|
|
|
|
(patches
|
|
|
|
|
|
(search-patches "memtest86+-build-reproducibly.patch"))))
|
2018-10-01 12:36:50 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(arguments
|
2022-10-23 02:00:01 +02:00
|
|
|
|
(list
|
|
|
|
|
|
#:tests? #f ; no way to test this
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
2022-10-23 02:00:00 +02:00
|
|
|
|
(add-after 'unpack 'patch-broken-Makefiles
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(substitute* (list "build32/Makefile"
|
|
|
|
|
|
"build64/Makefile")
|
|
|
|
|
|
(("/sbin/(mkdosfs)" _ command)
|
|
|
|
|
|
command))))
|
2022-10-23 02:00:01 +02:00
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
|
(add-before 'build 'enter-build-directory
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(chdir #$(if (target-x86-32?)
|
|
|
|
|
|
"build32"
|
|
|
|
|
|
"build64"))))
|
2022-10-23 02:00:00 +02:00
|
|
|
|
(replace 'build
|
|
|
|
|
|
(lambda* (#:key inputs make-flags #:allow-other-keys)
|
|
|
|
|
|
(apply invoke
|
|
|
|
|
|
"make" "all" "grub-iso" ; more options than memtest.iso
|
|
|
|
|
|
(string-append "GRUB_FONT_DIR="
|
|
|
|
|
|
(search-input-directory inputs
|
|
|
|
|
|
"share/grub"))
|
|
|
|
|
|
(string-append "GRUB_LIB_DIR="
|
|
|
|
|
|
(search-input-directory inputs
|
|
|
|
|
|
"lib/grub"))
|
|
|
|
|
|
make-flags)))
|
2022-10-23 02:00:01 +02:00
|
|
|
|
(replace 'install
|
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
|
(lib (string-append out "/lib/memtest86+"))
|
|
|
|
|
|
(doc (string-append out "/share/doc/memtest86+-"
|
|
|
|
|
|
#$version)))
|
|
|
|
|
|
(for-each
|
|
|
|
|
|
(lambda (file)
|
|
|
|
|
|
(install-file file lib))
|
2022-10-23 02:00:00 +02:00
|
|
|
|
(list "grub-memtest.iso"
|
|
|
|
|
|
"memtest.bin"
|
2022-10-23 02:00:01 +02:00
|
|
|
|
"memtest.efi"))
|
|
|
|
|
|
(chdir "..")
|
|
|
|
|
|
(install-file "README.md" doc)))))))
|
2022-10-23 02:00:00 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list dosfstools grub-hybrid mtools xorriso))
|
2018-10-01 12:36:50 +02:00
|
|
|
|
(supported-systems (list "i686-linux" "x86_64-linux"))
|
|
|
|
|
|
(home-page "https://www.memtest.org/")
|
|
|
|
|
|
(synopsis "Thorough real-mode memory tester")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Memtest86+ is a thorough, stand-alone memory test for x86 systems. It
|
|
|
|
|
|
repeatedly writes different patterns to all memory locations, reads them back
|
|
|
|
|
|
again, and verifies whether the result is the same as what was written. This
|
|
|
|
|
|
can help debug even intermittent and non-deterministic errors.
|
|
|
|
|
|
|
|
|
|
|
|
It runs independently of any operating system, at computer boot-up, so that it
|
2022-10-23 02:00:02 +02:00
|
|
|
|
can scan as much of your RAM as possible for hardware defects.")
|
2018-10-01 12:36:50 +02:00
|
|
|
|
(license license:gpl2)))
|
|
|
|
|
|
|
2018-10-01 16:11:22 +02:00
|
|
|
|
(define-public memtester
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "memtester")
|
2023-01-22 01:00:23 +01:00
|
|
|
|
(version "4.6.0")
|
2018-10-01 16:11:22 +02:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
|
;; Even the latest release is available under 'old-versions/'.
|
2023-01-22 01:00:23 +01:00
|
|
|
|
(uri (list
|
|
|
|
|
|
(string-append "https://pyropus.ca/software/memtester/old-versions/"
|
|
|
|
|
|
"memtester-" version ".tar.gz")
|
|
|
|
|
|
;; XXX ‘pyropus.ca’ redirects to ‘pyropus.ca.’. Valid, but wreaks
|
|
|
|
|
|
;; havoc with Guile's Web stack & TLS verification.
|
|
|
|
|
|
;; Remove this random mirror when that changes.
|
|
|
|
|
|
(string-append "https://ftp.dimensiondata.com/mirrors/"
|
|
|
|
|
|
"ftp.gentoo.org/distfiles/3e/"
|
|
|
|
|
|
"memtester-" version ".tar.gz")))
|
2018-10-01 16:11:22 +02:00
|
|
|
|
(sha256
|
2023-01-22 01:00:23 +01:00
|
|
|
|
(base32 "0bmv7n7gj02pda8mwif08xk63xc20r65q1pr099fz30cx2vlxzn9"))))
|
2018-10-01 16:11:22 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
`(#:make-flags
|
2020-06-02 20:29:12 +02:00
|
|
|
|
(list ,(string-append "CC=" (cc-for-target)))
|
2018-10-01 16:11:22 +02:00
|
|
|
|
#:phases
|
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
|
(replace 'configure
|
|
|
|
|
|
;; This is a home-brewed configuration system where the cc/ld command
|
|
|
|
|
|
;; lines are stored in one-line files.
|
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
|
(let* ((out (assoc-ref outputs "out")))
|
|
|
|
|
|
(substitute* (list "conf-cc" "conf-ld")
|
|
|
|
|
|
(("^cc") "gcc"))
|
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
|
(("(INSTALLPATH.*=).*" _ assignment)
|
|
|
|
|
|
(string-append assignment out)))
|
|
|
|
|
|
#t)))
|
|
|
|
|
|
(replace 'check
|
|
|
|
|
|
;; There is no test suite. Test some RAM for a single iteration.
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(invoke "./memtester" "64K" "1"))))))
|
|
|
|
|
|
(home-page "http://pyropus.ca/software/memtester/")
|
|
|
|
|
|
(synopsis "User-space memory subsystem tester")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Memtester stress-tests the memory subsystem of your operating system and
|
|
|
|
|
|
computer. It repeatedly writes different patterns to all memory locations,
|
|
|
|
|
|
reads them back again, and verifies whether the result is the same as what was
|
|
|
|
|
|
written. This can help debug even intermittent and non-deterministic errors.
|
|
|
|
|
|
|
|
|
|
|
|
Memtester runs entirely in user space. This means that you don't need to reboot
|
|
|
|
|
|
to test your memory, but also that it's not possible to test all of the RAM
|
|
|
|
|
|
installed in the system.
|
|
|
|
|
|
|
|
|
|
|
|
It can also be told to test memory starting at a particular physical address.")
|
|
|
|
|
|
(license license:gpl2)))
|
|
|
|
|
|
|
2018-08-30 17:50:48 +02:00
|
|
|
|
(define-public msr-tools
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "msr-tools")
|
|
|
|
|
|
(version "1.3")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
|
(uri (string-append "https://01.org/sites/default/files/downloads/"
|
|
|
|
|
|
name "/" name "-" version ".zip"))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "07hxmddg0l31kjfmaq84ni142lbbvgq6391r8bd79wpm819pnigr"))))
|
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
`(#:make-flags
|
|
|
|
|
|
(list (string-append "sbindir=" (assoc-ref %outputs "out") "/sbin"))
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
|
(add-before 'install 'create-output-directory
|
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
|
;; 'make install' assumes that sbindir exists.
|
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
|
(sbin (string-append out "/sbin")))
|
|
|
|
|
|
(mkdir-p sbin)
|
|
|
|
|
|
#t))))
|
|
|
|
|
|
#:tests? #f)) ; no test suite
|
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list unzip))
|
2018-08-30 17:50:48 +02:00
|
|
|
|
;; These registers and the CPUID instruction only exist on (most) x86 chips.
|
|
|
|
|
|
(supported-systems (list "i686-linux" "x86_64-linux"))
|
|
|
|
|
|
(home-page "https://01.org/msr-tools/")
|
|
|
|
|
|
(synopsis "Read and write Model-Specific Registers (@dfn{MSR})")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"The MSR Tools project provides console utilities to directly access the
|
|
|
|
|
|
Model-Specific Registers (@dfn{MSR}s) and CPU ID of Intel-compatible processors:
|
|
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
|
@item @command{cpuid}: show identification and feature information of any CPU
|
|
|
|
|
|
@item @command{rdmsr}: read MSRs from any CPU or all CPUs
|
|
|
|
|
|
@item @command{wrmsr}: write to MSRs on any CPU or all CPUs
|
|
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
|
|
|
These tools can be used to query and modify certain low-level CPU parameters,
|
|
|
|
|
|
such as the Turbo Boost ratio and Thermal Design Power (@dfn{TDP}) limits.
|
|
|
|
|
|
|
|
|
|
|
|
MSR addresses differ (greatly) between processors, and any such modification can
|
|
|
|
|
|
be dangerous and may void your CPU or system board's warranty.")
|
|
|
|
|
|
(license license:gpl2))) ; cpuid.c is gpl2, {rd,wr}msr.c are gpl2+
|
2018-10-23 20:42:17 +02:00
|
|
|
|
|
2021-10-17 00:45:06 +00:00
|
|
|
|
(define-public openhmd
|
2025-11-21 07:10:08 -07:00
|
|
|
|
(let* ((commit ; Track rift-kalman-filter branch
|
|
|
|
|
|
"04f5276bfc679968ceea62e4d1df6cbe6376941c")
|
|
|
|
|
|
(revision "0")
|
|
|
|
|
|
(version "0.3.0"))
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "openhmd")
|
|
|
|
|
|
(version (git-version version revision commit))
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
;; Latest official release was in 2019, and development has
|
|
|
|
|
|
;; largely moved to Monado. However, the Oculus Rift CV1
|
|
|
|
|
|
;; requires an unofficial fork of OpenHMD to (mostly) work on
|
|
|
|
|
|
;; Linux, even with Monado.
|
|
|
|
|
|
(url "https://github.com/thaytan/OpenHMD")
|
|
|
|
|
|
(commit commit)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "1bbqwf3682nf14jb76c7qv6h5qxpr1fjj7f308ndivdqss10kzq2"))))
|
|
|
|
|
|
(build-system meson-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list #:tests? #f)) ; no test target although there is a test folder
|
|
|
|
|
|
(native-inputs (list pkg-config))
|
|
|
|
|
|
(inputs (list glew hidapi libusb opencv))
|
|
|
|
|
|
(home-page "http://www.openhmd.net/")
|
|
|
|
|
|
(synopsis "API and drivers for immersive technology")
|
|
|
|
|
|
(description "OpenHMD aims to provide an API and drivers for immersive
|
2021-10-17 00:45:06 +00:00
|
|
|
|
technology, such as head mounted displays with built in head tracking.")
|
2025-11-21 07:10:08 -07:00
|
|
|
|
(license license:boost1.0))))
|
2021-10-17 00:45:06 +00:00
|
|
|
|
|
2022-01-02 11:55:27 -05:00
|
|
|
|
(define-public openrgb
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "openrgb")
|
2023-07-10 11:21:31 -04:00
|
|
|
|
(version "0.9")
|
2022-01-02 11:55:27 -05:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://gitlab.com/CalcProgrammer1/OpenRGB")
|
|
|
|
|
|
(commit (string-append "release_" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2023-07-10 11:21:31 -04:00
|
|
|
|
(base32 "0rdh87w4j47dr0vakva94fhcbdc67d9aad0p3najg9zf8zhf64jw"))
|
2022-01-02 11:55:27 -05:00
|
|
|
|
(patches
|
|
|
|
|
|
(search-patches "openrgb-unbundle-hueplusplus.patch"))
|
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
|
(snippet
|
|
|
|
|
|
'(begin
|
2022-12-01 10:46:34 +02:00
|
|
|
|
;; Delete many of the bundled libraries.
|
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
|
(list "dependencies/hidapi-win"
|
|
|
|
|
|
"dependencies/hueplusplus-1.0.0"
|
|
|
|
|
|
"dependencies/json"
|
|
|
|
|
|
"dependencies/libusb-1.0.22"
|
|
|
|
|
|
"dependencies/macUSPCIO"
|
|
|
|
|
|
"dependencies/mbedtls-2.24.0"
|
|
|
|
|
|
"dependencies/NVFC"
|
|
|
|
|
|
"dependencies/openrazer-win32"
|
|
|
|
|
|
"dependencies/winring0"
|
|
|
|
|
|
;; Some bundled appimages
|
|
|
|
|
|
"scripts/tools"))))))
|
2025-02-14 17:14:51 +01:00
|
|
|
|
(build-system qt-build-system)
|
2022-01-02 11:55:27 -05:00
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:tests? #f ; doesn't have tests
|
|
|
|
|
|
#:make-flags
|
|
|
|
|
|
#~(list (string-append "INSTALL_ROOT=" #$output ))
|
gnu: Restore gnu-build-system phases.
* gnu/packages/bioinformatics.scm (bandage),
* gnu/packages/education.scm (openboard),
* gnu/packages/emulators.scm (qtmips),
* gnu/packages/games.scm (chessx),
* gnu/packages/kde-systemtools.scm (spectacle-ocr-screenshot),
* gnu/packages/qt.scm (pyotherside, qtwidgetanimationframework)
<#:phases>: Restore build phase.
* gnu/packages/admin.scm (wpa-supplicant-gui),
* gnu/packages/finance.scm (kitsas)
[arguments]<#:tests?>: Disable.
<#:phases>: Restore build phase.
* gnu/packages/engineering.scm (librecad)
[arguments]<#:test-target>: Delete.
<#:phases>: Restore build and check phases.
* gnu/packages/music.scm (samplebrain)
<#:phases>: Restore build, check, and install phases.
* gnu/packages/password-utils.scm (qtpass)
[arguments]<#:test-target>: Delete.
<#:phases>: Restore build, check, and install phases.
* gnu/packages/ebook.scm (inkbox),
* gnu/packages/engineering.scm (qelectrotech),
* gnu/packages/games.scm (doom-runner, moonlight-qt, pokerth,
qcheckers),
* gnu/packages/gps.scm (gpxsee),
* gnu/packages/hardware.scm (openrgb),
* gnu/packages/image-viewers.scm (qview),
* gnu/packages/pdf.scm (qpdfview),
* gnu/packages/qt.scm (signond),
* gnu/packages/radio.scm (dream)
<#:phases>: Restore build and install phases.
* gnu/packages/disk.scm (qdirstat),
* gnu/packages/pdf.scm (sioyek),
* gnu/packages/qt.scm (signon-plugin-oauth2),
* gnu/packages/radio.scm (qsstv, wfview),
* gnu/packages/security-token.scm (yubikey-manager-qt),
* gnu/packages/tex.scm (texmaker),
* gnu/packages/video.scm (smplayer)
[arguments]<#:tests?>: Disable.
<#:phases>: Restore build and install phases.
* gnu/packages/task-management.scm (timewarrior)
<#:phases>: Restore check phase.
* gnu/packages/audio.scm (supercollider)
<#:phases>: Restore install phase.
* gnu/packages/web.scm (libzim): Update to 9.3.0.
(kiwix-lib): Update to 14.0.0.
(kiwix-desktop): Update to 2.4.1.
[source](patches): Delete.
[arguments]<#:test-target>: Delete.
[arguments]<#:tests?>: Disable.
<#:phases>: Restore build and install phases.
(kiwix-tools): Update to 3.7.0.
* gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch: Delete.
* gnu/local.mk: Update accordingly.
Change-Id: Ia5162ec190fc21334bbc516dcc01056d599f2891
2025-05-07 19:32:39 +00:00
|
|
|
|
#:modules '((guix build qt-build-system)
|
|
|
|
|
|
((guix build gnu-build-system) #:prefix gnu:)
|
|
|
|
|
|
(guix build utils))
|
2022-01-02 11:55:27 -05:00
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'unbundle
|
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
|
(substitute* "OpenRGB.pro"
|
|
|
|
|
|
(("dependencies/hueplusplus-1.0.0/include/hueplusplus")
|
|
|
|
|
|
(string-append #$(this-package-input "hueplusplus")
|
|
|
|
|
|
"/include/hueplusplus"))
|
|
|
|
|
|
(("dependencies/json")
|
2023-04-27 20:57:58 +02:00
|
|
|
|
(string-append #$(this-package-input "nlohmann-json")
|
2022-01-02 11:55:27 -05:00
|
|
|
|
"/include/nlohmann")))))
|
2023-11-09 23:07:18 +01:00
|
|
|
|
(add-after 'unpack 'patch-chmod
|
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
|
(substitute* "scripts/build-udev-rules.sh"
|
|
|
|
|
|
(("/bin/chmod") (string-append (assoc-ref inputs "coreutils")
|
|
|
|
|
|
"/bin/chmod")))))
|
2022-01-02 11:55:27 -05:00
|
|
|
|
;; Call qmake instead of configure to create a Makefile.
|
|
|
|
|
|
(replace 'configure
|
gnu: Restore gnu-build-system phases.
* gnu/packages/bioinformatics.scm (bandage),
* gnu/packages/education.scm (openboard),
* gnu/packages/emulators.scm (qtmips),
* gnu/packages/games.scm (chessx),
* gnu/packages/kde-systemtools.scm (spectacle-ocr-screenshot),
* gnu/packages/qt.scm (pyotherside, qtwidgetanimationframework)
<#:phases>: Restore build phase.
* gnu/packages/admin.scm (wpa-supplicant-gui),
* gnu/packages/finance.scm (kitsas)
[arguments]<#:tests?>: Disable.
<#:phases>: Restore build phase.
* gnu/packages/engineering.scm (librecad)
[arguments]<#:test-target>: Delete.
<#:phases>: Restore build and check phases.
* gnu/packages/music.scm (samplebrain)
<#:phases>: Restore build, check, and install phases.
* gnu/packages/password-utils.scm (qtpass)
[arguments]<#:test-target>: Delete.
<#:phases>: Restore build, check, and install phases.
* gnu/packages/ebook.scm (inkbox),
* gnu/packages/engineering.scm (qelectrotech),
* gnu/packages/games.scm (doom-runner, moonlight-qt, pokerth,
qcheckers),
* gnu/packages/gps.scm (gpxsee),
* gnu/packages/hardware.scm (openrgb),
* gnu/packages/image-viewers.scm (qview),
* gnu/packages/pdf.scm (qpdfview),
* gnu/packages/qt.scm (signond),
* gnu/packages/radio.scm (dream)
<#:phases>: Restore build and install phases.
* gnu/packages/disk.scm (qdirstat),
* gnu/packages/pdf.scm (sioyek),
* gnu/packages/qt.scm (signon-plugin-oauth2),
* gnu/packages/radio.scm (qsstv, wfview),
* gnu/packages/security-token.scm (yubikey-manager-qt),
* gnu/packages/tex.scm (texmaker),
* gnu/packages/video.scm (smplayer)
[arguments]<#:tests?>: Disable.
<#:phases>: Restore build and install phases.
* gnu/packages/task-management.scm (timewarrior)
<#:phases>: Restore check phase.
* gnu/packages/audio.scm (supercollider)
<#:phases>: Restore install phase.
* gnu/packages/web.scm (libzim): Update to 9.3.0.
(kiwix-lib): Update to 14.0.0.
(kiwix-desktop): Update to 2.4.1.
[source](patches): Delete.
[arguments]<#:test-target>: Delete.
[arguments]<#:tests?>: Disable.
<#:phases>: Restore build and install phases.
(kiwix-tools): Update to 3.7.0.
* gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch: Delete.
* gnu/local.mk: Update accordingly.
Change-Id: Ia5162ec190fc21334bbc516dcc01056d599f2891
2025-05-07 19:32:39 +00:00
|
|
|
|
(lambda _ (invoke "qmake" "PREFIX=/" "OpenRGB.pro")))
|
|
|
|
|
|
(replace 'build (assoc-ref gnu:%standard-phases 'build))
|
|
|
|
|
|
(replace 'install (assoc-ref gnu:%standard-phases 'install)))))
|
2022-01-02 11:55:27 -05:00
|
|
|
|
(inputs
|
2023-11-09 23:07:18 +01:00
|
|
|
|
(list coreutils
|
|
|
|
|
|
hidapi
|
2022-01-02 11:55:27 -05:00
|
|
|
|
hueplusplus
|
2023-04-27 20:57:58 +02:00
|
|
|
|
nlohmann-json
|
2022-01-02 11:55:27 -05:00
|
|
|
|
libusb
|
2023-05-27 19:27:33 +08:00
|
|
|
|
mbedtls-lts
|
2025-02-14 17:14:51 +01:00
|
|
|
|
qtbase-5
|
|
|
|
|
|
qtwayland-5))
|
2022-01-02 11:55:27 -05:00
|
|
|
|
(native-inputs
|
2022-11-29 01:09:03 +00:00
|
|
|
|
(list pkg-config
|
|
|
|
|
|
qttools-5))
|
2022-01-02 11:55:27 -05:00
|
|
|
|
(synopsis "RGB lighting control")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"OpenRGB is lighting control that doesn't depend on manufacturer software.
|
|
|
|
|
|
ASUS, ASRock, Corsair, G.Skill, Gigabyte, HyperX, MSI, Razer, ThermalTake, and more
|
|
|
|
|
|
supported.
|
|
|
|
|
|
|
|
|
|
|
|
Features:
|
|
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
|
@item Set colors and select effect modes for a wide variety of RGB hardware
|
|
|
|
|
|
@item Save and load profiles
|
|
|
|
|
|
@item Control lighting from third party software using the OpenRGB SDK
|
|
|
|
|
|
@item Command line interface
|
|
|
|
|
|
@item Connect multiple instances of OpenRGB to synchronize lighting across multiple PCs
|
|
|
|
|
|
@item Can operate standalone or in a client/headless server configuration
|
|
|
|
|
|
@item View device information
|
|
|
|
|
|
@item No official/manufacturer software required
|
|
|
|
|
|
@item Graphical view of device LEDs makes creating custom patterns easy
|
|
|
|
|
|
@end itemize")
|
|
|
|
|
|
(home-page "https://openrgb.org/")
|
|
|
|
|
|
(license license:gpl2))) ; Included libccmmk is lgpl3+, CRC is bsd-3
|
|
|
|
|
|
|
2018-10-23 20:42:17 +02:00
|
|
|
|
(define-public wavemon
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "wavemon")
|
2021-11-26 23:08:46 +01:00
|
|
|
|
(version "0.9.4")
|
2018-10-23 20:42:17 +02:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 22:53:28 +02:00
|
|
|
|
(url "https://github.com/uoaerg/wavemon")
|
2018-10-23 20:42:17 +02:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2021-11-26 23:08:46 +01:00
|
|
|
|
(base32 "0s3yz15vzx90fxyb8bgryksn0cr2gpz9inbcx4qjrgs7zfbm4pgh"))))
|
2018-10-23 20:42:17 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
`(#:make-flags
|
|
|
|
|
|
(list "CC=gcc"
|
|
|
|
|
|
;; Makefile.in (ab)uses $(datadir) as $(docdir). Set it to Guix's
|
|
|
|
|
|
;; standard --docdir since it's only used as such.
|
|
|
|
|
|
(string-append "datadir=" (assoc-ref %outputs "out")
|
|
|
|
|
|
"/share/doc/" ,name "-" ,version))
|
|
|
|
|
|
#:tests? #f)) ; no tests
|
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list pkg-config))
|
2018-10-23 20:42:17 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list libcap libnl ncurses))
|
2018-10-23 20:42:17 +02:00
|
|
|
|
(home-page "https://github.com/uoaerg/wavemon")
|
|
|
|
|
|
(synopsis "Wireless network device monitor")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Wavemon is a wireless device monitor with an interactive ncurses terminal
|
|
|
|
|
|
interface. It can display and plot signal and noise levels in real time. It
|
|
|
|
|
|
also reports packet statistics, device configuration, network parameters, and
|
|
|
|
|
|
access points and other wireless clients of your wireless network hardware.
|
|
|
|
|
|
|
|
|
|
|
|
Wavemon should work (with varying levels of detail and features) with any device
|
|
|
|
|
|
supported by the Linux kernel.")
|
|
|
|
|
|
;; Source file headers still say GPL2+, but the authorial intent
|
|
|
|
|
|
;; (from COPYING and the F9 'about' screen) is clearly GPL3+.
|
|
|
|
|
|
(license license:gpl3+)))
|
2020-04-14 16:20:52 +02:00
|
|
|
|
|
|
|
|
|
|
(define-public rkdeveloptool
|
|
|
|
|
|
(let ((commit "6e92ebcf8b1812da02663494a68972f956e490d3")
|
|
|
|
|
|
(revision "0"))
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "rkdeveloptool")
|
|
|
|
|
|
(version (git-version "1.3" revision commit))
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 22:53:28 +02:00
|
|
|
|
(url "https://github.com/rockchip-linux/rkdeveloptool")
|
2020-04-14 16:20:52 +02:00
|
|
|
|
(commit commit)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2022-12-15 12:29:12 +02:00
|
|
|
|
(base32 "0zwrkqfxd671iy69v3q0844gfdpm1yk51i9qh2rqc969bd8glxga"))
|
|
|
|
|
|
(snippet
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
;; https://github.com/rockchip-linux/rkdeveloptool/pull/57
|
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
(substitute* "main.cpp"
|
|
|
|
|
|
(("snprintf\\(buffer, sizeof\\(buffer\\), \"\\%s\", chip)")
|
|
|
|
|
|
"memccpy(buffer, chip, '\\0', sizeof(buffer))"))))))
|
2020-04-14 16:20:52 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list autoconf automake pkg-config))
|
2020-04-14 16:20:52 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list libusb))
|
2020-04-14 16:20:52 +02:00
|
|
|
|
(home-page "https://github.com/rockchip-linux/rkdeveloptool")
|
|
|
|
|
|
(synopsis "Read from and write to RockChicp devices over USB")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Rkdeveloptool can read from and write to RockChip devices over USB, such
|
|
|
|
|
|
as the Pinebook Pro.")
|
|
|
|
|
|
(license license:gpl2+))))
|
2020-04-23 15:55:32 +02:00
|
|
|
|
|
2020-04-23 15:55:33 +02:00
|
|
|
|
(define-public usbguard
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "usbguard")
|
2025-11-03 07:53:45 +00:00
|
|
|
|
(version "1.1.4")
|
2020-04-23 15:55:33 +02:00
|
|
|
|
(source (origin
|
2022-02-03 18:43:52 +01:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/USBGuard/usbguard")
|
|
|
|
|
|
(commit (string-append "usbguard-" version))))
|
2020-04-23 15:55:33 +02:00
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2025-11-03 07:53:45 +00:00
|
|
|
|
(base32 "1a38vmnjkwdxk85zq7mbbl41f0aiz9y1kinvwp17pp6xyn1qz2z0"))))
|
2020-04-23 15:55:33 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(arguments
|
2022-08-14 09:03:29 -04:00
|
|
|
|
(list
|
2025-11-03 07:53:45 +00:00
|
|
|
|
#:tests? #f ;XXX: sudo: command not found
|
2022-08-14 09:03:29 -04:00
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'patch-bootstrap-script
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
;; Don't attempt to fetch git submodules.
|
|
|
|
|
|
(substitute* "autogen.sh"
|
|
|
|
|
|
(("^git submodule.*")
|
|
|
|
|
|
""))))
|
|
|
|
|
|
(add-after 'bootstrap 'patch-build-scripts
|
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
|
(("/usr/include/catch")
|
|
|
|
|
|
(dirname (search-input-file inputs "include/catch.hpp"))))
|
|
|
|
|
|
;; Do not create log directory.
|
|
|
|
|
|
(substitute* "Makefile.in" ((".*/log/usbguard.*") ""))
|
|
|
|
|
|
;; Disable LDAP tests: they use 'sudo'.
|
|
|
|
|
|
(substitute* "src/Tests/Makefile.in"
|
|
|
|
|
|
(("\\$\\(am__append_2\\)") ""))))
|
|
|
|
|
|
(add-after 'install 'delete-static-library
|
|
|
|
|
|
(lambda args
|
|
|
|
|
|
;; It can't be directly disabled since it's needed for the tests.
|
|
|
|
|
|
(delete-file (string-append #$output
|
|
|
|
|
|
"/lib/libusbguard.a"))))
|
|
|
|
|
|
(add-after 'install 'install-zsh-completion
|
|
|
|
|
|
(lambda args
|
|
|
|
|
|
(let ((site-functions
|
|
|
|
|
|
(string-append #$output "/share/zsh/site-functions")))
|
|
|
|
|
|
(mkdir-p site-functions)
|
|
|
|
|
|
(copy-file "scripts/usbguard-zsh-completion"
|
|
|
|
|
|
(string-append site-functions "/_usbguard"))))))
|
|
|
|
|
|
#:make-flags
|
|
|
|
|
|
#~(list (string-append "BASH_COMPLETION_DIR="
|
|
|
|
|
|
#$output
|
|
|
|
|
|
"/etc/bash_completion.d"))
|
|
|
|
|
|
#:configure-flags
|
|
|
|
|
|
#~(list
|
|
|
|
|
|
"--localstatedir=/var"
|
|
|
|
|
|
"--enable-systemd=no"
|
|
|
|
|
|
"--with-ldap"
|
|
|
|
|
|
"--with-dbus"
|
|
|
|
|
|
"--with-polkit")))
|
2020-04-23 15:55:33 +02:00
|
|
|
|
(inputs
|
2022-02-03 18:51:02 +01:00
|
|
|
|
(list audit
|
|
|
|
|
|
catch-framework
|
|
|
|
|
|
dbus-glib
|
|
|
|
|
|
openldap
|
|
|
|
|
|
libcap-ng
|
|
|
|
|
|
libseccomp
|
|
|
|
|
|
libsodium
|
|
|
|
|
|
pegtl
|
|
|
|
|
|
polkit
|
|
|
|
|
|
protobuf
|
|
|
|
|
|
libqb))
|
2020-04-23 15:55:33 +02:00
|
|
|
|
(native-inputs
|
2022-02-03 18:51:02 +01:00
|
|
|
|
(list asciidoc
|
|
|
|
|
|
autoconf
|
|
|
|
|
|
automake
|
|
|
|
|
|
libtool
|
|
|
|
|
|
bash-completion
|
|
|
|
|
|
`(,glib "bin")
|
|
|
|
|
|
umockdev
|
|
|
|
|
|
libxml2
|
|
|
|
|
|
libxslt
|
|
|
|
|
|
pkg-config))
|
2020-04-23 15:55:33 +02:00
|
|
|
|
(home-page "https://usbguard.github.io")
|
|
|
|
|
|
(synopsis "Helps to protect your computer against rogue USB devices (a.k.a. BadUSB)")
|
|
|
|
|
|
(description "USBGuard is a software framework for implementing USB device
|
|
|
|
|
|
authorization policies (what kind of USB devices are authorized) as well as
|
|
|
|
|
|
method of use policies (how a USB device may interact with the system).
|
|
|
|
|
|
Simply put, it is a USB device whitelisting tool.")
|
|
|
|
|
|
(license license:gpl2)))
|
2021-01-05 05:30:00 +03:00
|
|
|
|
|
|
|
|
|
|
(define-public screentest
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "screentest")
|
2024-09-20 14:41:51 +03:00
|
|
|
|
(version "3.0")
|
2021-01-05 05:30:00 +03:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/TobiX/screentest")
|
|
|
|
|
|
(commit version)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2024-09-20 14:41:51 +03:00
|
|
|
|
(base32 "00422jbl8l10iw82m9m8sikaa9fwlnj7mgzvmnnazyq383aa1dkm"))))
|
|
|
|
|
|
(build-system meson-build-system)
|
|
|
|
|
|
(inputs (list glib gtk+))
|
|
|
|
|
|
(native-inputs (list gettext-minimal pkg-config))
|
2021-01-05 05:30:00 +03:00
|
|
|
|
(synopsis "Simple screen testing tool")
|
2024-09-20 14:41:51 +03:00
|
|
|
|
(description
|
|
|
|
|
|
"This is a program for testing the quality of CRT/LCD
|
2021-01-05 05:30:00 +03:00
|
|
|
|
screens. It displays various patterns and allows you to estimate the quality
|
|
|
|
|
|
of your CRT/LCD monitor.")
|
|
|
|
|
|
(home-page "https://github.com/TobiX/screentest")
|
|
|
|
|
|
(license license:gpl2)))
|
2021-01-28 14:26:28 +01:00
|
|
|
|
|
|
|
|
|
|
(define-public tpm2-tss
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "tpm2-tss")
|
|
|
|
|
|
(version "3.0.3")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
|
(uri (string-append "https://github.com/tpm2-software/tpm2-tss"
|
|
|
|
|
|
"/releases/download/" version "/tpm2-tss-" version
|
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "05xynpwq851fp8f5fy7ac0blvz8mr5m5cbqj3gslgbwv63kjnfbq"))))
|
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list pkg-config))
|
2021-01-28 14:26:28 +01:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list curl json-c openssl))
|
2021-01-28 14:26:28 +01:00
|
|
|
|
(home-page "https://tpm2-software.github.io/")
|
|
|
|
|
|
(synopsis "OSS Implementation of the TCG TPM2 Software Stack (TSS2)")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package provides the @acronym{TCG, Trusted Computing Group}
|
|
|
|
|
|
@acronym{TSS2, TPM2 Software Stack}. The stack contains libtss2-fapi,
|
|
|
|
|
|
libtss2-esys, libtss2-sys, libtss2-mu, libtss2-tcti-device, libtss2-tcti-swtpm
|
|
|
|
|
|
and libtss2-tcti-mssim.")
|
|
|
|
|
|
(license license:bsd-2)))
|
2022-01-11 22:56:14 +08:00
|
|
|
|
|
2023-05-21 23:27:36 -07:00
|
|
|
|
(define-public tpm2-tools
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "tpm2-tools")
|
|
|
|
|
|
(version "5.5")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
|
(uri (string-append "https://github.com/tpm2-software/tpm2-tools/"
|
|
|
|
|
|
"releases/download/" version "/"
|
|
|
|
|
|
"tpm2-tools-" version ".tar.gz"))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "08y16q92dh7frsyw0zlm3q9gsfqyls0li248s2pgsysk633lknqz"))))
|
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list autoconf
|
|
|
|
|
|
automake
|
|
|
|
|
|
curl
|
|
|
|
|
|
libtool
|
2025-07-01 22:51:59 +02:00
|
|
|
|
gettext-minimal
|
2023-05-21 23:27:36 -07:00
|
|
|
|
openssl
|
|
|
|
|
|
pandoc
|
|
|
|
|
|
pkg-config
|
|
|
|
|
|
tpm2-tss))
|
|
|
|
|
|
(home-page "https://github.com/tpm2-software/tpm2-tools")
|
|
|
|
|
|
(synopsis "Tools for the Trusted Platform Module (TPM 2.0)")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package provides user tools for the Trusted Computing Group's (TCG)
|
|
|
|
|
|
TPM2 Software Stack (TSS). These programs help with common tasks such as key
|
|
|
|
|
|
management, attestation, encryption, and signing.")
|
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
2022-01-11 22:56:14 +08:00
|
|
|
|
(define-public libcpuid
|
2025-07-10 09:50:04 +03:00
|
|
|
|
(package
|
|
|
|
|
|
(name "libcpuid")
|
|
|
|
|
|
(version "0.8.0")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/anrieff/libcpuid")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "09brfdvv9289cqyq9cd32c8qqyv8cixj06ld8yb8ifi7d4j0zzlv"))
|
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
|
(snippet
|
|
|
|
|
|
;; Now remove blobs.
|
|
|
|
|
|
#~(begin
|
|
|
|
|
|
(delete-file "libcpuid/msrdriver.c")
|
|
|
|
|
|
(delete-file-recursively "drivers/x86")))
|
|
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:configure-flags #~(list "-DLIBCPUID_ENABLE_TESTS=ON")
|
2025-07-22 16:24:20 +00:00
|
|
|
|
#:modules '((guix build cmake-build-system)
|
|
|
|
|
|
((guix build gnu-build-system) #:prefix gnu:)
|
|
|
|
|
|
(guix build utils))
|
2025-07-10 09:50:04 +03:00
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'absolutize
|
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
|
;; Linux specific
|
|
|
|
|
|
(when #$(target-linux?)
|
|
|
|
|
|
(substitute* '("libcpuid/rdmsr.c"
|
|
|
|
|
|
"libcpuid/rdcpuid.c")
|
|
|
|
|
|
(("modprobe")
|
2025-07-10 10:33:01 +03:00
|
|
|
|
(search-input-file inputs "/bin/modprobe"))))
|
|
|
|
|
|
;; TODO: Build kernel module.
|
|
|
|
|
|
(when (and #$(target-linux?)
|
|
|
|
|
|
#$(target-arm?))
|
|
|
|
|
|
(substitute* "drivers/arm/linux/CMakeLists.txt"
|
2025-07-22 16:24:20 +00:00
|
|
|
|
(("/usr/src/") (string-append #$output "/src/"))))))
|
|
|
|
|
|
(replace 'check
|
|
|
|
|
|
(lambda* (#:rest args)
|
|
|
|
|
|
(apply (assoc-ref gnu:%standard-phases 'check)
|
|
|
|
|
|
#:test-target "test" args))))))
|
2025-07-10 09:50:04 +03:00
|
|
|
|
(inputs
|
2025-07-10 10:33:01 +03:00
|
|
|
|
(append
|
|
|
|
|
|
(if (target-linux?)
|
|
|
|
|
|
(list kmod)
|
|
|
|
|
|
'())
|
|
|
|
|
|
(if (and (target-arm?)
|
|
|
|
|
|
(target-linux?))
|
|
|
|
|
|
(list linux-libre-headers)
|
|
|
|
|
|
'())
|
|
|
|
|
|
'()))
|
2025-07-10 09:50:04 +03:00
|
|
|
|
(native-inputs (list python-3)) ;required by tests
|
|
|
|
|
|
(supported-systems
|
2025-07-10 10:33:01 +03:00
|
|
|
|
(filter (lambda (t) (or (target-x86-64? t) (target-x86-32? t)
|
|
|
|
|
|
(target-aarch64? t) (target-arm32? t)))
|
2025-07-10 09:50:04 +03:00
|
|
|
|
%supported-systems))
|
|
|
|
|
|
(home-page "https://libcpuid.sourceforge.net/")
|
|
|
|
|
|
(synopsis "Small library for x86 CPU detection and feature extraction")
|
|
|
|
|
|
(description "Libcpuid is a small C library to get vendor, model, branding
|
2022-01-11 22:56:14 +08:00
|
|
|
|
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}.")
|
2025-07-10 09:50:04 +03:00
|
|
|
|
(license license:bsd-2)))
|
2022-12-03 10:21:12 +01:00
|
|
|
|
|
|
|
|
|
|
(define-public liblxi
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "liblxi")
|
2023-07-16 02:00:01 +02:00
|
|
|
|
(version "1.20")
|
2022-12-03 10:21:12 +01:00
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/lxi-tools/liblxi")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
2023-07-16 02:00:01 +02:00
|
|
|
|
(base32 "1cc95ggs64jqq9lk5c8fm4nk6fdnv1x7lr3k4znamj0vv6w22bcd"))))
|
2022-12-03 10:21:12 +01:00
|
|
|
|
(build-system meson-build-system)
|
|
|
|
|
|
(native-inputs
|
gnu: Pin CMake dependency.
* gnu/packages/emulators.scm (python-keystone-engine, unicorn),
* gnu/packages/freedesktop.scm (libdecor),
* gnu/packages/gnome.scm (raider, xffm+),
* gnu/packages/golang-xyz.scm (go-mvdan-cc-editorconfig),
* gnu/packages/hardware.scm (liblxi, lxi-tools),
* gnu/packages/mp3.scm (wavbreaker),
* gnu/packages/pantheon.scm (pantheon-calculator, pantheon-calendar),
* gnu/packages/plotutils.scm (asymptote),
* gnu/packages/photo.scm (entangle),
* gnu/packages/python-graphics.scm (python-pivy),
* gnu/packages/python-xyz.scm (python-awkward-cpp, python-contourpy,
python-symengine),
* gnu/packages/syndication.scm (syndication-domination)
* gnu/packages/qt.scm (soqt),
* gnu/packages/vnc.scm (tigervnc-server)
[native-inputs]: Change cmake to cmake-minimal.
* gnu/packages/bioinformatics.scm (trinityrnaseq)
[native-inputs]: Change cmake to cmake-minimal.
[arguments]<#:phases>[install]: Remove deletion of uncreated files.
Change-Id: I6ce8b737d9a21f83caad7b79b591e68a86f45fd0
2024-10-22 18:09:30 +00:00
|
|
|
|
(list cmake-minimal pkg-config))
|
2022-12-03 10:21:12 +01:00
|
|
|
|
(inputs
|
|
|
|
|
|
(list avahi libtirpc libxml2))
|
|
|
|
|
|
(home-page "https://lxi-tools.github.io/")
|
2023-07-16 02:00:00 +02:00
|
|
|
|
(synopsis "@acronym{LXI, LAN eXtensions for Instrumentation} library")
|
2022-12-03 10:21:12 +01:00
|
|
|
|
(description
|
2023-07-16 02:00:00 +02:00
|
|
|
|
"This library offers a simple API for communicating with instruments
|
|
|
|
|
|
compatible with the @acronym{LXI, LAN eXtensions for Instrumentation} standard
|
|
|
|
|
|
that defines communication protocols for instrumentation and data acquisition
|
|
|
|
|
|
systems using Ethernet. Applications can use liblxi to discover instruments on
|
|
|
|
|
|
your network, send SCPI commands, and receive responses.")
|
2022-12-03 10:21:12 +01:00
|
|
|
|
(license license:bsd-3)))
|
2022-12-03 10:21:45 +01:00
|
|
|
|
|
|
|
|
|
|
(define-public lxi-tools
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "lxi-tools")
|
|
|
|
|
|
(version "2.5")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/lxi-tools/lxi-tools")
|
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32
|
|
|
|
|
|
"1xc99xhca386az73rpsrf3z0j7y0hrv0xcwj1dr2ahr7lhnjznqp"))))
|
|
|
|
|
|
(build-system meson-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:glib-or-gtk? #true
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'skip-gtk-update-icon-cache
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(substitute* "build-aux/meson/postinstall.py"
|
|
|
|
|
|
(("gtk-update-icon-cache") (which "true"))
|
|
|
|
|
|
(("update-desktop-database") (which "true"))))))))
|
|
|
|
|
|
(native-inputs
|
|
|
|
|
|
(list bash-completion
|
gnu: Pin CMake dependency.
* gnu/packages/emulators.scm (python-keystone-engine, unicorn),
* gnu/packages/freedesktop.scm (libdecor),
* gnu/packages/gnome.scm (raider, xffm+),
* gnu/packages/golang-xyz.scm (go-mvdan-cc-editorconfig),
* gnu/packages/hardware.scm (liblxi, lxi-tools),
* gnu/packages/mp3.scm (wavbreaker),
* gnu/packages/pantheon.scm (pantheon-calculator, pantheon-calendar),
* gnu/packages/plotutils.scm (asymptote),
* gnu/packages/photo.scm (entangle),
* gnu/packages/python-graphics.scm (python-pivy),
* gnu/packages/python-xyz.scm (python-awkward-cpp, python-contourpy,
python-symengine),
* gnu/packages/syndication.scm (syndication-domination)
* gnu/packages/qt.scm (soqt),
* gnu/packages/vnc.scm (tigervnc-server)
[native-inputs]: Change cmake to cmake-minimal.
* gnu/packages/bioinformatics.scm (trinityrnaseq)
[native-inputs]: Change cmake to cmake-minimal.
[arguments]<#:phases>[install]: Remove deletion of uncreated files.
Change-Id: I6ce8b737d9a21f83caad7b79b591e68a86f45fd0
2024-10-22 18:09:30 +00:00
|
|
|
|
cmake-minimal
|
2022-12-03 10:21:45 +01:00
|
|
|
|
(list glib "bin")
|
|
|
|
|
|
pkg-config
|
|
|
|
|
|
python
|
|
|
|
|
|
readline))
|
|
|
|
|
|
(inputs
|
|
|
|
|
|
(list glib
|
|
|
|
|
|
gtk
|
|
|
|
|
|
gtksourceview
|
|
|
|
|
|
json-glib
|
|
|
|
|
|
libadwaita
|
|
|
|
|
|
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)))
|
2023-05-01 21:09:42 +03:00
|
|
|
|
|
|
|
|
|
|
(define-public usbrelay
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "usbrelay")
|
2024-08-07 11:55:11 +03:00
|
|
|
|
(version "1.2.1")
|
2023-05-01 21:09:42 +03:00
|
|
|
|
(source (origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/darrylb123/usbrelay")
|
|
|
|
|
|
(commit version)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32
|
2024-08-07 11:55:11 +03:00
|
|
|
|
"1xw2fqx4drmkvv587vkz3aicp6pw1mzxr8bjz8wad9j4c0r24cgn"))))
|
2023-05-01 21:09:42 +03:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:phases #~(modify-phases %standard-phases
|
2024-08-07 11:55:11 +03:00
|
|
|
|
;; No configure script.
|
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
|
(add-after 'install 'install-manpage
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(install-file "usbrelay.1"
|
|
|
|
|
|
(string-append #$output "/share/man/man1"))))
|
|
|
|
|
|
(add-after 'install-manpage 'install-udev-rules
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(install-file "50-usbrelay.rules"
|
|
|
|
|
|
(string-append #$output "/lib/udev/rules.d")))))
|
2023-05-01 21:09:42 +03:00
|
|
|
|
#:make-flags #~(list (string-append "CC=" #$(cc-for-target))
|
|
|
|
|
|
(string-append "PREFIX=" #$output)
|
|
|
|
|
|
(string-append "LDFLAGS=-Wl,-rpath="
|
|
|
|
|
|
(string-append #$output "/lib"))
|
|
|
|
|
|
"LDCONFIG=true"
|
2024-08-07 11:55:11 +03:00
|
|
|
|
(string-append "USBMAJOR=" #$version)
|
|
|
|
|
|
(string-append "USBLIBVER=" #$version)
|
|
|
|
|
|
(string-append "VERSION=" #$version))
|
|
|
|
|
|
;; No test suite.
|
|
|
|
|
|
#:tests? #f))
|
2023-05-01 21:09:42 +03:00
|
|
|
|
(inputs (list hidapi))
|
|
|
|
|
|
(home-page "https://github.com/darrylb123/usbrelay")
|
|
|
|
|
|
(synopsis "Control USB relay modules")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This is a Linux driver based on hidapi for a variety of inexpensive
|
|
|
|
|
|
HID compatible USB relay modules available with different number of
|
|
|
|
|
|
output relays.")
|
|
|
|
|
|
(license license:gpl2+)))
|
2025-02-28 12:42:24 +03:00
|
|
|
|
|
|
|
|
|
|
(define-public python-usbrelay
|
|
|
|
|
|
(package
|
|
|
|
|
|
(inherit usbrelay)
|
|
|
|
|
|
(name "python-usbrelay")
|
|
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
|
(native-inputs
|
2025-10-23 22:10:53 +02:00
|
|
|
|
(list python-setuptools))
|
2025-02-28 12:42:24 +03:00
|
|
|
|
(inputs
|
|
|
|
|
|
(list usbrelay))
|
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
|
(list python-paho-mqtt))
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'install-daemon
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(install-file "usbrelayd.8"
|
|
|
|
|
|
(string-append #$output "/share/man/man8"))
|
|
|
|
|
|
(install-file "usbrelayd"
|
|
|
|
|
|
(string-append #$output "/sbin"))
|
|
|
|
|
|
(chmod (string-append #$output "/sbin/usbrelayd") #o555)))
|
|
|
|
|
|
(add-after 'install-daemon 'chdir
|
|
|
|
|
|
(lambda _
|
2025-10-23 22:10:53 +02:00
|
|
|
|
(chdir "usbrelay_py")))
|
|
|
|
|
|
(replace 'check
|
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
|
(when tests?
|
|
|
|
|
|
(invoke "python" "tests/usbrelay_test.py")))))))
|
2025-02-28 12:42:24 +03:00
|
|
|
|
(synopsis "Python library to control USB relay modules")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This is the Python extension to @code{usbrelay}, a Linux driver based on
|
|
|
|
|
|
hidapi for a variety of inexpensive HID compatible USB relay modules. This
|
|
|
|
|
|
package also includes @code{usbrelayd}.")))
|
2025-09-20 22:50:51 +03:00
|
|
|
|
|
|
|
|
|
|
(define-public guile-usbrelay
|
|
|
|
|
|
(package
|
|
|
|
|
|
(name "guile-usbrelay")
|
|
|
|
|
|
(version "0.1.0")
|
|
|
|
|
|
(home-page "https://codeberg.org/pisemsky/guile-usbrelay")
|
|
|
|
|
|
(source
|
|
|
|
|
|
(origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url home-page)
|
|
|
|
|
|
(commit version)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32 "0ndgkazv9bnyj45pccym11245c65hlvsvzmx0acpzlywz7xxyy72"))))
|
|
|
|
|
|
(build-system guile-build-system)
|
|
|
|
|
|
(arguments
|
|
|
|
|
|
(list
|
|
|
|
|
|
#:source-directory "modules"
|
|
|
|
|
|
#:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-before 'build 'compile-ffi
|
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
|
(setenv "GUILE_AUTO_COMPILE" "0")
|
|
|
|
|
|
(invoke "guile" "make.scm"))))))
|
|
|
|
|
|
(native-inputs (list gcc guile-3.0 nyacc pkg-config))
|
|
|
|
|
|
(inputs (list hidapi))
|
|
|
|
|
|
(propagated-inputs (list nyacc))
|
|
|
|
|
|
(synopsis "Control USB HID relays from Guile")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"This package provides a Guile Scheme API to control USB HID relay modules
|
|
|
|
|
|
produced by dcttech.")
|
|
|
|
|
|
(license license:lgpl3+)))
|