me
/
guix
Archived
1
0
Fork 0

gnu: uwufetch: Add and use missing inputs.

* gnu/packages/admin.scm (uwufetch) [inputs]: Add missing inputs.
[phases]: Use the fully-qualified paths of the input gawk and grep.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Juliana Sims 2023-08-09 22:37:16 -04:00 committed by Ludovic Courtès
parent 6bbef3d9a2
commit 7b11cfd19e
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 7 additions and 0 deletions

View File

@ -4025,6 +4025,11 @@ you are running, what theme or icon set you are using, etc.")
(delete 'configure)
(add-before 'build 'patch-source-paths
(lambda _
(substitute* "fetch.c"
(("grep")
#$(file-append grep "/bin/grep"))
(("awk")
#$(file-append gawk "/bin/awk")))
(substitute* "uwufetch.c"
(("(/usr(/local)?)(.*;)" all _ _ rest)
(string-append #$output rest)))))
@ -4033,6 +4038,8 @@ you are running, what theme or icon set you are using, etc.")
(lambda _
(mkdir-p (string-append #$output "/include")))))))
(inputs (list lshw
gawk
grep
;; viu XXX not yet packaged in Guix
xwininfo))
(home-page "https://github.com/TheDarkBug/uwufetch")