3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: ugrep: Simplify snippet.

* gnu/packages/search.scm (ugrep)[source]: Use nested for-each loop.
Simplify regular expressions.
This commit is contained in:
Liliana Marie Prikler 2022-08-06 09:53:09 +02:00
parent 6665600e23
commit ffea1d47cb
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -683,11 +683,13 @@ bibliographic data and simple document and bibtex retrieval.")
(base32 "03b3lahc3zzsznaqnrk47f1cnd5jwakvwrkz0r4m2crk09cpfv57"))
(file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet #~(begin
(delete-file-recursively "bin") ; pre-built executables
(for-each delete-file (find-files "tests" "^archive\\..*"))
(for-each delete-file (find-files "tests" "^.*\\.pdf$"))
(for-each delete-file (find-files "tests" "^.*\\.class$"))))))
(snippet
#~(begin
(delete-file-recursively "bin") ; pre-built executables
(for-each (lambda (regexp)
(for-each delete-file
(find-files "tests" regexp)))
'("^archive" "\\.pdf$" "\\.class$"))))))
(build-system gnu-build-system)
(inputs
(list bzip2