summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2026-02-17 12:13:57 +0200
committerEfraim Flashner <efraim@flashner.co.il>2026-02-17 13:34:08 +0200
commitd926044cd53ae5a2c6d5e7cb97d99051d4760044 (patch)
tree73c9de031da6219010c455bb543777bf1c6d7517 /gnu
parent33833444278230f175dd1945c5d8d4c2f4aaac69 (diff)
gnu: efitools: Rewrite using g-exps.
* gnu/packages/efi.scm (efitools)[arguments]: Rewrite using g-exps. Change-Id: I560426dd6b9192d1e058a8f9152ba033219dd410
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/efi.scm66
1 files changed, 29 insertions, 37 deletions
diff --git a/gnu/packages/efi.scm b/gnu/packages/efi.scm
index e46549a00d8..bab3fd6cde7 100644
--- a/gnu/packages/efi.scm
+++ b/gnu/packages/efi.scm
@@ -161,57 +161,49 @@ information.")
161 (source 161 (source
162 (origin 162 (origin
163 (method git-fetch) 163 (method git-fetch)
164 (uri 164 (uri (git-reference
165 (git-reference 165 (url "https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git")
166 (url "https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git") 166 (commit (string-append "v" version))))
167 (commit (string-append "v" version))))
168 (file-name (git-file-name name version)) 167 (file-name (git-file-name name version))
169 (sha256 168 (sha256
170 (base32 169 (base32 "0jabgl2pxvfl780yvghq131ylpf82k7banjz0ksjhlm66ik8gb1i"))
171 "0jabgl2pxvfl780yvghq131ylpf82k7banjz0ksjhlm66ik8gb1i"))
172 (patches (search-patches "efitools-riscv64-support.patch")))) 170 (patches (search-patches "efitools-riscv64-support.patch"))))
173 (build-system gnu-build-system) 171 (build-system gnu-build-system)
174 (arguments 172 (arguments
175 `(#:tests? #f ; No tests exist. 173 (list
174 #:tests? #f ; No tests exist.
176 #:parallel-build? #f ; Makefile contains a race condition. 175 #:parallel-build? #f ; Makefile contains a race condition.
177 #:make-flags 176 #:make-flags
178 '("CC=gcc -g -O2 -Wno-error=implicit-function-declaration") 177 #~(list "CC=gcc -g -O2 -Wno-error=implicit-function-declaration")
179 #:phases 178 #:phases
180 (modify-phases %standard-phases 179 #~(modify-phases %standard-phases
181 (add-after 'unpack 'patch 180 (add-after 'unpack 'patch
182 (lambda* (#:key inputs outputs #:allow-other-keys) 181 (lambda _
183 (substitute* "Make.rules" 182 (let ((gnu-efi (assoc-ref %build-inputs "gnu-efi")))
184 (("/usr/include/efi") 183 (substitute* "Make.rules"
185 (string-append (assoc-ref inputs "gnu-efi") 184 (("/usr/include/efi")
186 "/include/efi")) 185 (string-append gnu-efi "/include/efi"))
187 (("\\$\\(DESTDIR\\)/usr") 186 (("\\$\\(DESTDIR\\)/usr")
188 (string-append (assoc-ref outputs "out"))) 187 #$output)
189 (("/usr/lib/gnuefi") 188 (("/usr/lib/gnuefi")
190 (string-append (assoc-ref inputs "gnu-efi") 189 (string-append gnu-efi "/lib"))))))
191 "/lib"))) 190 (add-after 'unpack 'patch-more-shebangs
192 #t)) 191 (lambda _
193 (add-after 'unpack 'patch-more-shebangs 192 (substitute* "xxdi.pl"
194 (lambda* (#:key inputs #:allow-other-keys) 193 (("/usr/bin/env perl")
195 (substitute* "xxdi.pl" 194 (search-input-file %build-inputs "/bin/perl")))))
196 (("#!.*") 195 (delete 'configure))))
197 (string-append "#!" 196 (native-inputs (list help2man perl perl-file-slurp sbsigntools))
198 (assoc-ref inputs "perl") 197 (inputs (list gnu-efi openssl))
199 "/bin/perl\n")))
200 #t))
201 (delete 'configure))))
202 (native-inputs
203 (list help2man perl perl-file-slurp sbsigntools))
204 (inputs
205 (list gnu-efi openssl))
206 (synopsis "EFI tools (key management, variable management)") 198 (synopsis "EFI tools (key management, variable management)")
207 (description "This package provides EFI tools for EFI key management 199 (description "This package provides EFI tools for EFI key management
208and EFI variable management.") 200and EFI variable management.")
209 (home-page "https://blog.hansenpartnership.com/efitools-1-4-with-linux-key-manipulation-utilities-released/") 201 (home-page
202 "https://blog.hansenpartnership.com/efitools-1-4-with-linux-key-manipulation-utilities-released/")
210 ;; Programs are under GPL 2. 203 ;; Programs are under GPL 2.
211 ;; Library routines (in lib/) are under LGPL 2.1. 204 ;; Library routines (in lib/) are under LGPL 2.1.
212 ;; Compiling/linking/using OpenSSL is permitted. 205 ;; Compiling/linking/using OpenSSL is permitted.
213 (license (list license:gpl2 206 (license (list license:gpl2 license:lgpl2.1))))
214 license:lgpl2.1))))
215 207
216(define-public efilinux 208(define-public efilinux
217 (package 209 (package