summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-05-14 00:07:33 +0200
committerRicardo Wurmus <rekado@elephly.net>2017-05-22 18:56:35 +0200
commite7a5d73ea9fb0eee5c7e116674e347849711f863 (patch)
tree5fde59db182e288d9a3acaf62634d1e53f62bcb4 /gnu
parentfded0c69ddb71562ba83043e76eda39594af1ac1 (diff)
downloadguix-e7a5d73ea9fb0eee5c7e116674e347849711f863.tar.gz
gnu: ant: Delete bundled jars.
* gnu/packages/java.scm (ant)[source]: Delete bundled jars in a snippet.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/java.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 0e70514d33..238841aa9d 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -713,7 +713,13 @@ the standard javac executable.  The tool runs on JamVM instead of SableVM.")))
                                   version "-src.tar.gz"))
               (sha256
                (base32
-                "1k28mka0m3isy9yr8gz84kz1f3f879rwaxrd44vdn9xbfwvwk86n"))))
+                "1k28mka0m3isy9yr8gz84kz1f3f879rwaxrd44vdn9xbfwvwk86n"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  (for-each delete-file
+                            (find-files "lib/optional" "\\.jar$"))
+                  #t))))
     (arguments
      (substitute-keyword-arguments (package-arguments ant-bootstrap)
        ((#:phases phases)