summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-05-15 00:32:05 +0200
committerRicardo Wurmus <rekado@elephly.net>2020-05-15 13:09:10 +0200
commitc7c9370dd7c5d2dfc038cbbec802f0f001af158f (patch)
tree9030fcef7cf07ca431a6b1e50c17df3d9222fc41 /gnu/packages
parent7b82e1cdbed4c3a44ecbb99f754580a9e6a1b0ae (diff)
downloadguix-c7c9370dd7c5d2dfc038cbbec802f0f001af158f.tar.gz
gnu: openjdk12: Simplify snippet.
* gnu/packages/java.scm (openjdk12)[source]: Use regular expression in
find-files.
Diffstat (limited to 'gnu/packages')
-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 d74f0af9d9..c0ec683ebe 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2231,9 +2231,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))))
     (inputs
      `(("alsa-lib" ,alsa-lib)