gnu: libtraceevent: Shorten source snippet.

* gnu/packages/linux.scm (libtraceevent)[source]:
Use SUBSTITUTE*'s features.
This commit is contained in:
Tobias Geerinckx-Rice 2023-07-16 02:00:00 +02:00
parent 1063a3b564
commit 9991028fef
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -9854,10 +9854,8 @@ (define-public libtraceevent
(modules '((guix build utils)))
(snippet
#~(begin
(substitute* "Makefile"
(("/bin/pwd") "pwd"))
(substitute* "scripts/utils.mk"
(("/bin/pwd") "pwd"))))))
(substitute* (list "Makefile" "scripts/utils.mk")
(("/bin/(pwd)" _ command) command))))))
(build-system gnu-build-system)
(arguments
(list