mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2026-01-25 03:54:58 -06:00
* nongnu/packages/gradle.scm (gradle)[#:phases]{wrap}: Add PATH wrapping.
[inputs]: Add coreutils, findutils and sed.
Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
57 lines
2.3 KiB
Scheme
57 lines
2.3 KiB
Scheme
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
|
;;; Copyright © 2025 John Kehayias <john@guixotic.coop>
|
|
;;; Copyright © 2025 Maxim Cournoyer <maxim@guixotic.coop>
|
|
|
|
(define-module (nongnu packages gradle)
|
|
#:use-module (gnu packages base)
|
|
#:use-module (gnu packages compression)
|
|
#:use-module (gnu packages java)
|
|
#:use-module (guix build-system copy)
|
|
#:use-module (guix download)
|
|
#:use-module (guix gexp)
|
|
#:use-module (guix licenses)
|
|
#:use-module (guix packages))
|
|
|
|
(define-public gradle
|
|
(package
|
|
(name "gradle")
|
|
(version "9.2.1")
|
|
(source
|
|
(origin
|
|
(method url-fetch)
|
|
(uri (string-append
|
|
"https://services.gradle.org/distributions/gradle-"
|
|
version "-bin.zip"))
|
|
(sha256
|
|
(base32 "0gxwqmv60yxgyjrqlimkk1449id999ffwicghd1szcdwisglrx3j"))))
|
|
(build-system copy-build-system)
|
|
(arguments
|
|
(list #:install-plan ''(("bin" "./")
|
|
("lib" "./"))
|
|
#:phases
|
|
#~(modify-phases %standard-phases
|
|
(add-after 'install 'wrap
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
(wrap-program (string-append #$output "/bin/gradle")
|
|
`("JAVA_HOME" =
|
|
(,(dirname
|
|
(dirname
|
|
(search-input-file inputs "bin/javac")))))
|
|
`("PATH" prefix
|
|
(,(dirname
|
|
(search-input-file inputs "bin/sed"))
|
|
,(dirname
|
|
(search-input-file inputs "bin/uname"))
|
|
,(dirname
|
|
(search-input-file inputs "/bin/xargs"))))))))))
|
|
(native-inputs (list unzip))
|
|
(inputs (list coreutils findutils `(,openjdk "jdk") sed))
|
|
(home-page "https://gradle.org/")
|
|
(synopsis "Flexible build automation tool for JVM")
|
|
(description "Gradle is a build tool with a focus on build automation and
|
|
support for multi-language development, with an elegant and extensible
|
|
declarative build language. Gradle supports build automation across multiple
|
|
languages and platforms including Java, Scala, Kotlin, Javascript, Android,
|
|
C/C++, and Groovy, and is closely integrated with development tools and
|
|
continuous integration servers including Eclipse, IntelliJ, and Jenkins.")
|
|
(license asl2.0)))
|