From ed007026312260c79566dffa742820ac787fe3b9 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Sat, 6 Sep 2025 12:12:38 +0200 Subject: [PATCH] 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 --- gnu/packages/electronics.scm | 56 ------------------------------- 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 612e166d9b1457e478c055560ca23f7f66c930aa..cae2101709f2a1dcc1ffc52bb73943b45e60ef29 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 af5017d2495770120c3c33abc93aec128c539e7f..6670532ea36052a1d499eaec68a8e4c3fdcca8b2 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -15,6 +15,9 @@ ;;; Copyright © 2023 Maxim Cournoyer ;;; Copyright © 2024 Artyom V. Poptsov ;;; Copyright © 2025 Joaquín Aguirrezabalaga +;;; Copyright © 2025 Sharlatan Hellseher +;;; Copyright © 2025 Ian Eure +;;; Copyright © 2023 Thomas Albers Raviola ;;; ;;; 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")