summaryrefslogtreecommitdiff
path: root/gnu/packages/java.scm
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2025-10-28 20:27:15 +0300
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2025-10-28 20:28:39 +0300
commit019a912a5b4136e0df8a8ab8799aa2e644f1e077 (patch)
treef8b58c181804e82b21224f8656ce3addfaf1da0f /gnu/packages/java.scm
parent44bd0e2c35e2539e4b5060d0d39c0b11d2b87b59 (diff)
gnu: drip: Use GEXPs.
* gnu/packages/java.scm (drip): Use GEXPs. Change-Id: I9849de8f0caa4cf246dd30a49a2bcf2984125ee6
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r--gnu/packages/java.scm77
1 files changed, 37 insertions, 40 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index fb7512edd20..4d3cdef4524 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2280,46 +2280,43 @@ Tool for Language Recognition v3).")
(native-inputs
`(("jdk" ,icedtea "jdk")))
(arguments
- `(#:tests? #f ; No tests.
- #:phases
- (modify-phases %standard-phases
- (delete 'configure)
- (add-before 'build 'relax-gcc-14-strictness
- (lambda _
- (substitute* "Makefile"
- ((" gcc(.*)$" all options)
- (string-append
- " gcc"
- " -Wno-error=incompatible-pointer-types"
- " -Wno-error=implicit-function-declaration"
- options)))))
- (add-before 'install 'fix-wrapper
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((jps (search-input-file inputs "/bin/jps")))
- (substitute* "bin/drip"
- (("jps") jps)
- (("brew update && brew upgrade drip") "guix pull && guix install drip")
- ;; No need to make:
- (("\\(cd -- \"\\$drip_dir\" && make -s\\) \\|\\| exit 1") "")
- ;; No need to include source:
- (("\\[\\[ -r \\$drip_dir/src/org/flatland/drip/Main\\.java \\]\\]")
- "true"))
- #t)))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin"))
- (share (string-append out "/share/drip")))
- (mkdir-p bin)
- (for-each
- (lambda (file)
- (install-file (string-append "bin/" file) bin))
- '("drip" "drip_daemon" "drip_proxy"))
- (install-file "drip.jar" share)
- (substitute* (string-append bin "/drip")
- (("drip_dir=\\$bin_dir/..")
- (string-append "drip_dir=" share)))
- #t))))))
+ (list #:tests? #f ; No tests.
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'build 'relax-gcc-14-strictness
+ (lambda _
+ (substitute* "Makefile"
+ ((" gcc(.*)$" all options)
+ (string-append
+ " gcc"
+ " -Wno-error=incompatible-pointer-types"
+ " -Wno-error=implicit-function-declaration"
+ options)))))
+ (add-before 'install 'fix-wrapper
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((jps (search-input-file inputs "/bin/jps")))
+ (substitute* "bin/drip"
+ (("jps") jps)
+ (("brew update && brew upgrade drip") "guix pull && guix install drip")
+ ;; No need to make:
+ (("\\(cd -- \"\\$drip_dir\" && make -s\\) \\|\\| exit 1") "")
+ ;; No need to include source:
+ (("\\[\\[ -r \\$drip_dir/src/org/flatland/drip/Main\\.java \\]\\]")
+ "true")))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((bin (string-append #$output "/bin"))
+ (share (string-append #$output "/share/drip")))
+ (mkdir-p bin)
+ (for-each
+ (lambda (file)
+ (install-file (string-append "bin/" file) bin))
+ '("drip" "drip_daemon" "drip_proxy"))
+ (install-file "drip.jar" share)
+ (substitute* (string-append bin "/drip")
+ (("drip_dir=\\$bin_dir/..")
+ (string-append "drip_dir=" share)))))))))
(home-page "https://github.com/ninjudd/drip")
(synopsis "Faster Java Virtual Machine launching")
(description "Drip is a launcher for the Java Virtual Machine that