[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61057] [PATCH 3/3] gnu: flashrom: Wrap PATH to find dmidecode.
From: |
Hilton Chain |
Subject: |
[bug#61057] [PATCH 3/3] gnu: flashrom: Wrap PATH to find dmidecode. |
Date: |
Wed, 25 Jan 2023 20:06:02 +0800 |
* gnu/packages/flashing-tools.scm (flashrom)[arguments]<#:phases>: Add phase
'wrap-program.
---
gnu/packages/flashing-tools.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm
index 7016d04092..c2f9858fe2 100644
--- a/gnu/packages/flashing-tools.scm
+++ b/gnu/packages/flashing-tools.scm
@@ -79,7 +79,14 @@ (define-public flashrom
#:tests? #f ; no 'check' target
#:phases
#~(modify-phases %standard-phases
- (delete 'configure)))) ; no configure script
+ (delete 'configure) ; no configure script
+ (add-after 'install 'wrap-program
+ (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")))))))))))
(home-page "https://flashrom.org/")
(synopsis "Identify, read, write, erase, and verify ROM/flash chips")
(description
--
2.39.1