gnu: openjdk10: Simplify snippet.

* gnu/packages/java.scm (openjdk10)[source]: Use regular expression in
find-files.
This commit is contained in:
Ricardo Wurmus 2020-05-14 22:07:02 +02:00 committed by Tobias Geerinckx-Rice
parent f3273e0f71
commit 8a938d4b79
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -1954,9 +1954,7 @@ (define-public openjdk10
(modules '((guix build utils)))
(snippet
`(begin
(for-each delete-file (find-files "." ".*.bin$"))
(for-each delete-file (find-files "." ".*.exe$"))
(for-each delete-file (find-files "." ".*.jar$"))
(for-each delete-file (find-files "." ".*.(bin|exe|jar)$"))
#t))))
(arguments
(substitute-keyword-arguments (package-arguments openjdk9)