mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: ugrep: Simplify snippet.
* gnu/packages/search.scm (ugrep)[source]: Use nested for-each loop. Simplify regular expressions.
This commit is contained in:
parent
6665600e23
commit
ffea1d47cb
1 changed files with 7 additions and 5 deletions
|
@ -683,11 +683,13 @@ (define-public ugrep
|
|||
(base32 "03b3lahc3zzsznaqnrk47f1cnd5jwakvwrkz0r4m2crk09cpfv57"))
|
||||
(file-name (git-file-name name version))
|
||||
(modules '((guix build utils)))
|
||||
(snippet #~(begin
|
||||
(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$"))))))
|
||||
(for-each (lambda (regexp)
|
||||
(for-each delete-file
|
||||
(find-files "tests" regexp)))
|
||||
'("^archive" "\\.pdf$" "\\.class$"))))))
|
||||
(build-system gnu-build-system)
|
||||
(inputs
|
||||
(list bzip2
|
||||
|
|
Loading…
Reference in a new issue