3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: java-commons-math3: Remove references to %build-inputs.

* gnu/packages/java.scm (java-commons-math3)[arguments]: Use a gexp
to remove references to %build-inputs.
This commit is contained in:
Julien Lepiller 2021-12-04 22:04:44 +01:00
parent ba5cb6456d
commit 634b46a469
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -5901,12 +5901,12 @@ overly clever.")
`(#:build-target "jar"
#:test-target "test"
#:make-flags
(let ((hamcrest (assoc-ref %build-inputs "java-hamcrest-core"))
(junit (assoc-ref %build-inputs "java-junit")))
(list (string-append "-Djunit.jar="
(car (find-files junit "jar$")))
(string-append "-Dhamcrest.jar="
(car (find-files hamcrest ".*.jar$")))))
,#~(let ((hamcrest #$(this-package-native-input "java-hamcrest-core"))
(junit #$(this-package-native-input "java-junit")))
(list (string-append "-Djunit.jar="
(car (find-files junit "jar$")))
(string-append "-Dhamcrest.jar="
(car (find-files hamcrest ".*.jar$")))))
#:phases
(modify-phases %standard-phases
;; We want to build the jar in the build phase and run the tests