~ruther/guix-local

7c5054876a6bd43daf19a2951d93ed7aa9270837 — Cayetano Santos 7 months ago d7cb3fc
gnu: openfpgaloader: Move to flashing-tools.

* gnu/packages/fpga.scm (openfpgaloader): Move from here ...
* gnu/packages/flashing-tools.scm: ... to here.

Change-Id: Idd0110a8289593e568249f4e2bb0cc1b23dc6843
2 files changed, 48 insertions(+), 48 deletions(-)

M gnu/packages/flashing-tools.scm
M gnu/packages/fpga.scm
M gnu/packages/flashing-tools.scm => gnu/packages/flashing-tools.scm +48 -0
@@ 11,9 11,11 @@
;;; Copyright © 2021 Martin Becze <mjbecze@riseup.net>
;;; Copyright © 2021 Mathieu Othacehe <othacehe@gnu.org>
;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;; Copyright © 2022 Danny Milosavljevic <dannym@scratchpost.org>
;;; Copyright © 2023 B. Wilson <x@wilsonb.com>
;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2024, 2025 Cayetano Santos <csantosb@inventati.org>
;;; Copyright © 2025 Joaquín Aguirrezabalaga <kinote@kinote.org>
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2025 Ian Eure <ian@retrospec.tv>


@@ 588,6 590,52 @@ Additionally your user must be member of the @code{plugdev} group.")
Unifinished Extensible Firmware Interface (UEFI) images.")
    (license license:bsd-2)))

(define-public openfpgaloader
  (package
    (name "openfpgaloader")
    (version "0.13.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url "https://github.com/trabucayre/openfpgaloader")
                     (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "1p5qvr0bq27rp7f20ysjml7zy4bbwjx3s4yd5qjsg4b01mw4hbiq"))))
    (build-system cmake-build-system)
    (native-inputs
     (list pkg-config))
    (inputs (list eudev
                  hidapi
                  libftdi
                  libgpiod
                  libusb
                  zlib))
    (arguments
     (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.  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 srecord
  (package
    (name "srecord")

M gnu/packages/fpga.scm => gnu/packages/fpga.scm +0 -48
@@ 68,8 68,6 @@
  #:use-module (gnu packages graphviz)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages libffi)
  #:use-module (gnu packages libftdi)
  #:use-module (gnu packages libusb)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages llvm)
  #:use-module (gnu packages man)


@@ 890,52 888,6 @@ hardware designs in Verilog.")
      (home-page "https://github.com/ZipCPU/zipcpu/")
      (license license:lgpl3+))))

(define-public openfpgaloader
  (package
    (name "openfpgaloader")
    (version "1.0.0")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/trabucayre/openfpgaloader")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "00xr4dzd1mlc1k4rivh9ibmdlx6yizb016laad10dkhjqfz1ixhq"))))
    (build-system cmake-build-system)
    (native-inputs
     (list pkg-config))
    (inputs (list eudev
                  hidapi
                  libftdi
                  libgpiod
                  libusb
                  zlib))
    (arguments
     (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.  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
  (let ((commit "c56cb8efa2000d06cec698f0149bc4ca4ef4e5bc")
        (revision "3"))