gnu: maven-shared-utils: Fix /bin/sh invocation.

* gnu/packages/maven.scm (maven-shared-utils): Fix /bin/sh invocation.
This commit is contained in:
Julien Lepiller 2020-06-26 22:24:10 +02:00
parent 51087d51df
commit 159e6d9fe3
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -379,9 +379,13 @@ (define-public maven-shared-utils
(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