gnu: openjdk12: Simplify snippet.

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

View file

@ -2231,9 +2231,7 @@ (define-public openjdk12
(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))))
(inputs
`(("alsa-lib" ,alsa-lib)