summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-05-15 00:12:49 +0200
committerRicardo Wurmus <rekado@elephly.net>2020-05-15 13:09:10 +0200
commit62d46ad6131b45b07e949808304e5cf15515516e (patch)
tree9e3e065f76e98724e269d3d6e694f1ba9e08dfbe /gnu
parent49ad6aec80394379c6b63e8c88608a104e1b5e40 (diff)
downloadguix-62d46ad6131b45b07e949808304e5cf15515516e.tar.gz
gnu: openjdk11: Simplify snippet.
* gnu/packages/java.scm (openjdk11)[source]: Use regular expression in
find-files.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/java.scm4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index ba98182ede..f76dfc8681 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2001,9 +2001,7 @@ new Date();"))
               (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))))
     (build-system gnu-build-system)
     (outputs '("out" "jdk" "doc"))