diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2025-09-06 12:12:38 +0200 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-09-09 16:04:05 +0900 |
| commit | ed007026312260c79566dffa742820ac787fe3b9 (patch) | |
| tree | bfea55b7911ed7f632d83d8f0ea0c101ed11a9ce /gnu/packages | |
| parent | 2ba475d37aade4f551d39f65faef8b9c597f1cf9 (diff) | |
gnu: minipro: Move to flashing-tools.
* gnu/packages/electronics.scm (minipro): Move from here ...
* gnu/packages/flashing-tools.scm: ... to here.
Change-Id: I41354d9a5731575e370bfc90805ec1260bdb86d3
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/electronics.scm | 56 | ||||
| -rw-r--r-- | gnu/packages/flashing-tools.scm | 59 |
2 files changed, 59 insertions, 56 deletions
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 612e166d9b1..cae2101709f 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -408,62 +408,6 @@ which allows one to install the M8 firmware on any Teensy.") license:public-domain license:zlib)))) -(define-public minipro - ;; When built from a Git repo, minipro expects GIT_DATE to be set to the - ;; value of `git show -s --format=%ci'. When updating the package, run this - ;; in a checkout and put the value here. - (let* ((date "2025-04-13 21:54:38 -0700")) - (package - (name "minipro") - (version "0.7.3") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://gitlab.com/DavidGriffith/minipro.git") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1525rn5h73xism16vmivd3cz93g8w76h24f0yvbpc35ydc3fkqf7")))) - (native-inputs (list pkg-config which)) - (inputs (list libusb zlib)) - (build-system gnu-build-system) - (arguments - (list - #:tests? #f ; no test suite - #:phases - #~(modify-phases %standard-phases - (delete 'configure) ; No ./configure script - (add-before 'build 'fix-makefile - (lambda _ - ;; Fix some git related variables that minipro expects - (substitute* "Makefile" - (("GIT_BRANCH = .*") - (string-append "GIT_BRANCH = \"master\"\n")) - (("GIT_HASH = .*") - (string-append "GIT_HASH = \"" #$version "\"\n")) - (("GIT_DATE = .*") - (string-append "GIT_DATE = \"" #$date "\"\n")))))) - #:make-flags - #~(list (string-append "VERSION=" #$version) - (string-append "PREFIX=" #$output) - (string-append "UDEV_DIR=" #$output "/lib/udev") - (string-append "COMPLETIONS_DIR=" #$output - "/share/bash-completion/completions")))) - (synopsis "Controls the TL866xx series of chip programmers") - (description - "minipro is designed to program or read the contents of -chips supported by the TL866xx series of programmers. This includes many -microcontrollers, ROMs, EEPROMs and PLDs. - -To use this program without root privileges you must install the necessary udev -rules. This can be done by extending @code{udev-service-type} in your -@code{operating-system} configuration with this package. E.g.: -@code{(udev-rules-service 'minipro minipro #:groups '(\"plugdev\")}. -Additionally your user must be member of the @code{plugdev} group.") - (home-page "https://gitlab.com/DavidGriffith/minipro") - (license license:gpl3+)))) - (define-public openboardview (package (name "openboardview") diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index af5017d2495..6670532ea36 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -15,6 +15,9 @@ ;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com> ;;; Copyright © 2025 Joaquín Aguirrezabalaga <kinote@kinote.org> +;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com> +;;; Copyright © 2025 Ian Eure <ian@retrospec.tv> +;;; Copyright © 2023 Thomas Albers Raviola <thomas@thomaslabs.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -497,6 +500,62 @@ ME as far as possible (it only edits ME firmware image files).") ;; This is an Intel thing. (supported-systems '("x86_64-linux" "i686-linux")))) +(define-public minipro + ;; When built from a Git repo, minipro expects GIT_DATE to be set to the + ;; value of `git show -s --format=%ci'. When updating the package, run this + ;; in a checkout and put the value here. + (let* ((date "2025-04-13 21:54:38 -0700")) + (package + (name "minipro") + (version "0.7.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/DavidGriffith/minipro.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1525rn5h73xism16vmivd3cz93g8w76h24f0yvbpc35ydc3fkqf7")))) + (native-inputs (list pkg-config which)) + (inputs (list libusb zlib)) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ; no test suite + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ; No ./configure script + (add-before 'build 'fix-makefile + (lambda _ + ;; Fix some git related variables that minipro expects + (substitute* "Makefile" + (("GIT_BRANCH = .*") + (string-append "GIT_BRANCH = \"master\"\n")) + (("GIT_HASH = .*") + (string-append "GIT_HASH = \"" #$version "\"\n")) + (("GIT_DATE = .*") + (string-append "GIT_DATE = \"" #$date "\"\n")))))) + #:make-flags + #~(list (string-append "VERSION=" #$version) + (string-append "PREFIX=" #$output) + (string-append "UDEV_DIR=" #$output "/lib/udev") + (string-append "COMPLETIONS_DIR=" #$output + "/share/bash-completion/completions")))) + (synopsis "Controls the TL866xx series of chip programmers") + (description + "minipro is designed to program or read the contents of +chips supported by the TL866xx series of programmers. This includes many +microcontrollers, ROMs, EEPROMs and PLDs. + +To use this program without root privileges you must install the necessary udev +rules. This can be done by extending @code{udev-service-type} in your +@code{operating-system} configuration with this package. E.g.: +@code{(udev-rules-service 'minipro minipro #:groups '(\"plugdev\")}. +Additionally your user must be member of the @code{plugdev} group.") + (home-page "https://gitlab.com/DavidGriffith/minipro") + (license license:gpl3+)))) + (define-public uefitool (package (name "uefitool") |
