diff options
author | Evgeny Pisemsky <mail@pisemsky.site> | 2024-08-07 11:55:11 +0300 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-08-14 10:49:49 +0100 |
commit | ff185dc00319af1dede83df465288e73dc0e5ff5 (patch) | |
tree | c629d6bfc88dc7e69f415dea94d127831a8aaefa /gnu/packages | |
parent | b6cb65b649b14d9876720804fe9bda358753f0c8 (diff) | |
download | guix-ff185dc00319af1dede83df465288e73dc0e5ff5.tar.gz guix-ff185dc00319af1dede83df465288e73dc0e5ff5.zip |
gnu: usbrelay: Update to 1.2.1.
* gnu/packages/hardware.scm (usbrelay): Update to 1.2.1.
[arguments]: Install manpage and udev rules, specify actual version.
Change-Id: I5b889889c528d5526c8cfcc66d56b2b9d8d60437
Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/hardware.scm | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 9db7de848e..d8530f8705 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2018–2022 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re> -;;; Copyright © 2021, 2023 Evgeny Pisemsky <mail@pisemsky.site> +;;; Copyright © 2021, 2023, 2024 Evgeny Pisemsky <mail@pisemsky.site> ;;; Copyright © 2021 Léo Le Bouter <lle-bout@zaclys.net> ;;; Copyright © 2021 Denis Carikli <GNUtoo@cyberdimension.org> ;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com> @@ -1580,7 +1580,7 @@ modern instrumentation and data acquision systems using Ethernet.") (define-public usbrelay (package (name "usbrelay") - (version "1.2") + (version "1.2.1") (source (origin (method git-fetch) (uri (git-reference @@ -1589,19 +1589,31 @@ modern instrumentation and data acquision systems using Ethernet.") (file-name (git-file-name name version)) (sha256 (base32 - "0fr3wglr2c6myg4k6ai2p5z38prclcnk2ngik15sq16fnp6qg750")))) + "1xw2fqx4drmkvv587vkz3aicp6pw1mzxr8bjz8wad9j4c0r24cgn")))) (build-system gnu-build-system) (arguments (list #:phases #~(modify-phases %standard-phases - (delete 'configure)) ;no configure script + ;; 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"))))) #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) (string-append "PREFIX=" #$output) (string-append "LDFLAGS=-Wl,-rpath=" (string-append #$output "/lib")) "LDCONFIG=true" - "USBMAJOR=$(USBLIBVER)") - #:tests? #f)) ;no test suite + (string-append "USBMAJOR=" #$version) + (string-append "USBLIBVER=" #$version) + (string-append "VERSION=" #$version)) + ;; No test suite. + #:tests? #f)) (inputs (list hidapi)) (home-page "https://github.com/darrylb123/usbrelay") (synopsis "Control USB relay modules") |