Unverified Commit ffea1d47 authored by Liliana Marie Prikler's avatar Liliana Marie Prikler
Browse files

gnu: ugrep: Simplify snippet.

* gnu/packages/search.scm (ugrep)[source]: Use nested for-each loop.
Simplify regular expressions.
parent 6665600e
......@@ -683,11 +683,13 @@ (define-public ugrep
(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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment