diff options
| author | Evgeny Pisemsky <mail@pisemsky.site> | 2025-07-28 20:55:01 +0300 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-08-03 10:51:07 +0200 |
| commit | ae333e0755ed8915dd0b95ea967e65b138dbc631 (patch) | |
| tree | e584b4fe22021822c77ce32ee109718ce8531ee5 /gnu/packages/libusb.scm | |
| parent | b7ac124f3cfadca9a6fc9829628f84c9d9d1b27b (diff) | |
gnu: Add hidapitester.
* gnu/packages/libusb.scm (hidapitester): New variable.
Change-Id: I663b41bf890465846e8d1e5cae8b95a6f4186155
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
Diffstat (limited to 'gnu/packages/libusb.scm')
| -rw-r--r-- | gnu/packages/libusb.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm index eb6dc9a844a..61c43ceccbd 100644 --- a/gnu/packages/libusb.scm +++ b/gnu/packages/libusb.scm | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | ;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com> | 17 | ;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com> |
| 18 | ;;; Copyright © 2024 hapster <o.rojon@posteo.net> | 18 | ;;; Copyright © 2024 hapster <o.rojon@posteo.net> |
| 19 | ;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org> | 19 | ;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org> |
| 20 | ;;; Copyright © 2025 Evgeny Pisemsky <mail@pisemsky.site> | ||
| 20 | ;;; | 21 | ;;; |
| 21 | ;;; This file is part of GNU Guix. | 22 | ;;; This file is part of GNU Guix. |
| 22 | ;;; | 23 | ;;; |
| @@ -809,3 +810,39 @@ HID-Class devices.") | |||
| 809 | (license:non-copyleft | 810 | (license:non-copyleft |
| 810 | "https://github.com/trezor/cython-hidapi/blob/master/LICENSE-orig.txt" | 811 | "https://github.com/trezor/cython-hidapi/blob/master/LICENSE-orig.txt" |
| 811 | "You are free to use cython-hidapi code for any purpose."))))) | 812 | "You are free to use cython-hidapi code for any purpose."))))) |
| 813 | |||
| 814 | (define-public hidapitester | ||
| 815 | (package | ||
| 816 | (name "hidapitester") | ||
| 817 | (version "0.5") | ||
| 818 | (source | ||
| 819 | (origin | ||
| 820 | (method git-fetch) | ||
| 821 | (uri (git-reference | ||
| 822 | (url "https://github.com/todbot/hidapitester") | ||
| 823 | (commit (string-append "v" version)))) | ||
| 824 | (file-name (git-file-name name version)) | ||
| 825 | (sha256 | ||
| 826 | (base32 "0pilnq01yd4974xicy6as330f5b74pnj9mn5gvg1s21f78lxx4is")))) | ||
| 827 | (build-system gnu-build-system) | ||
| 828 | (arguments | ||
| 829 | (list | ||
| 830 | #:tests? #f | ||
| 831 | #:phases | ||
| 832 | #~(modify-phases %standard-phases | ||
| 833 | (delete 'configure) | ||
| 834 | (replace 'install | ||
| 835 | (lambda _ | ||
| 836 | (install-file "hidapitester" | ||
| 837 | (string-append #$output "/bin"))))) | ||
| 838 | #:make-flags | ||
| 839 | #~(list (string-append "CC=" #$(cc-for-target)) | ||
| 840 | (string-append "GIT_TAG=v" #$version)))) | ||
| 841 | (native-inputs (list pkg-config)) | ||
| 842 | (inputs (list hidapi eudev)) | ||
| 843 | (home-page "https://github.com/todbot/hidapitester") | ||
| 844 | (synopsis "Command-line program to exercise hidapi") | ||
| 845 | (description | ||
| 846 | "The hidapitester program is a simple, low-dependency command-line tool to test | ||
| 847 | out every API call in hidapi.") | ||
| 848 | (license license:gpl3))) | ||
