diff options
author | Cayetano Santos <csantosb@inventati.org> | 2025-06-12 09:34:27 +0200 |
---|---|---|
committer | Zheng Junjie <z572@z572.online> | 2025-07-03 16:12:01 +0800 |
commit | 690ac4fc2d64c896292454ae47e38233239b615e (patch) | |
tree | 0ad1c8fa971509d08d428e89fb3d6c26de07ab84 | |
parent | 5a86ade3e189d6c420255c0c5fdbdaeb1310071e (diff) |
gnu: openfpgaloader: Include udev rules.
* gnu/packages/fpga.scm (openfpgaloader): Include udev rules.
[argument]: Add install-rules phase.
[description]: Add instructions for use.
[home-page]: Add missed / .
Change-Id: Iecb1eebd03b08131e341a106f46d85b21b02fe22
-rw-r--r-- | gnu/packages/fpga.scm | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index d0238ccd96..626a10c948 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -829,11 +829,27 @@ hardware designs in Verilog.") libusb zlib)) (arguments - `(#:tests? #f)) ; No tests exist + (list #:tests? #f ;no test suite + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-rules + (lambda _ + (install-file + "../source/99-openfpgaloader.rules" + (string-append #$output "/lib/udev/rules.d/"))))))) (synopsis "Utility for programming FPGA") (description "This package provides a program to transfer a bitstream -to an FPGA.") - (home-page "https://trabucayre.github.io/openFPGALoader") +to an FPGA. To use @code{openfpgaloader} without root privileges it is +necessary to install the necessary udev rules. This can be done by extending +@code{udev-service-type} in the @code{operating-system} configuration file with +this package, as in: +@lisp +(udev-rules-service 'openfpgaloader openfpgaloader #:groups '(\"plugdev\") +@end lisp +Additionally, the @samp{plugdev} group should be registered in the +@code{supplementary-groups} field of your @code{user-account} declaration. Refer +to @samp{info \"(guix) Base Services\"} for examples.") + (home-page "https://trabucayre.github.io/openFPGALoader/") (license license:asl2.0))) (define-public python-hdlmake |