From 9991028feff0c30145db32166d1d04fff7db2f35 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 16 Jul 2023 02:00:00 +0200 Subject: gnu: libtraceevent: Shorten source snippet. * gnu/packages/linux.scm (libtraceevent)[source]: Use SUBSTITUTE*'s features. --- gnu/packages/linux.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index d1a69ab7fc..90a5a9566c 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -9854,10 +9854,8 @@ older system-wide @file{/sys} interface.") (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 -- cgit 1.4.1