aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-26 22:24:10 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:14:50 +0200
commit159e6d9fe33b8a76ae650d3b6b1f3d708eb6baaa (patch)
tree00d4ee7793a7c71bcd8227fe79a7d03e0330bc36
parent51087d51df20b89cf081aaa895efadbb73e6550b (diff)
downloadguix-159e6d9fe33b8a76ae650d3b6b1f3d708eb6baaa.tar
guix-159e6d9fe33b8a76ae650d3b6b1f3d708eb6baaa.tar.gz
gnu: maven-shared-utils: Fix /bin/sh invocation.
* gnu/packages/maven.scm (maven-shared-utils): Fix /bin/sh invocation.
-rw-r--r--gnu/packages/maven.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index dfd7102e1e..00c644c432 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -379,9 +379,13 @@ Maven Wagon, for use in Maven.")))
(arguments
`(#:jar-name "maven-shared-utils.jar"
#:source-dir "src/main/java"
- #:jdk ,icedtea-8
#:phases
(modify-phases %standard-phases
+ (add-before 'build 'fix-/bin/sh-invocation
+ (lambda _
+ (substitute* (find-files "src" ".*.java$")
+ (("/bin/sh") (which "sh")))
+ #t))
(add-before 'check 'remove-cyclic-dep
(lambda _
(delete-file