summaryrefslogtreecommitdiff
path: root/gnu/packages/flashing-tools.scm
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2025-01-11 14:20:15 +0800
committerHilton Chain <hako@ultrarare.space>2025-01-11 16:11:28 +0800
commit455f8ff55e0897730e3a7056fa341fa885aae793 (patch)
treea6fe91cf9e17715df1d123c05ff806ab3ba6f5c0 /gnu/packages/flashing-tools.scm
parentd1cfeaef1381cc2a335241ebee810643f47d21c8 (diff)
gnu: flashrom: Update to 1.5.1.
* gnu/packages/flashing-tools.scm (flashrom): Update to 1.5.1. [arguments]<#:phases>: Use absolute dmidecode path instead of wrapping. Change-Id: Ie4267350c3f98d22232cff947a9e2438eb82d7ae
Diffstat (limited to 'gnu/packages/flashing-tools.scm')
-rw-r--r--gnu/packages/flashing-tools.scm19
1 files changed, 10 insertions, 9 deletions
diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm
index 0eced283f2c..834db7f8b0c 100644
--- a/gnu/packages/flashing-tools.scm
+++ b/gnu/packages/flashing-tools.scm
@@ -76,15 +76,15 @@
(define-public flashrom
(package
(name "flashrom")
- (version "1.3.0")
+ (version "1.5.1")
(source (origin
(method url-fetch)
(uri (string-append
"https://download.flashrom.org/releases/flashrom-v"
- version ".tar.bz2"))
+ version ".tar.xz"))
(sha256
(base32
- "08wn2j5vxzzvigflrjypgxxzjp32c76bshrlkzki5l6cad226lx0"))))
+ "14v2bd46wyz46bvsxr3zx2wacqbqzi4w4pk50giar7nldq3lp4qz"))))
(build-system meson-build-system)
(inputs (list bash-minimal dmidecode pciutils libusb libftdi libjaylink))
(native-inputs (list cmocka pkg-config))
@@ -93,13 +93,14 @@
#~'("-Dprogrammer=all")
#:phases
#~(modify-phases %standard-phases
- (add-after 'install 'wrap-program
+ (add-after 'unpack 'fix-path
(lambda* (#:key inputs #:allow-other-keys)
- (let ((flashrom (string-append #$output "/sbin/flashrom")))
- (wrap-program flashrom
- `("PATH" ":" prefix
- (,(dirname (search-input-file
- inputs "/sbin/dmidecode")))))))))))
+ (substitute* "dmi.c"
+ (("(dmidecode)( 2>/dev/null)" _ command suffix)
+ (string-append
+ (search-input-file
+ inputs (in-vicinity "sbin" command))
+ suffix))))))))
(home-page "https://flashrom.org/")
(synopsis "Identify, read, write, erase, and verify ROM/flash chips")
(description