summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-11-05 16:29:31 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:59:34 +0200
commitabafb986cf1aec972beed750daa31145a1fe0a3c (patch)
tree844875f143aaf97551eae4f72b038dae75f02896 /gnu
parent5fdb2690b7d5b06581064315b7daafb79decbd6e (diff)
downloadguix-abafb986cf1aec972beed750daa31145a1fe0a3c.tar.gz
gnu: Add rust-java-locator-0.1.
* gnu/packages/crates-io.scm (rust-java-locator-0.1): New variable.

Change-Id: Ib01b84708cd342f5c1835845aebda4d25593e378
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 87a42cb543..e08f7b20ae 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37815,6 +37815,28 @@ format.")
                             ("rust-libloading" ,rust-libloading-0.6)
                             ("rust-pkg-config" ,rust-pkg-config-0.3))))))
 
+(define-public rust-java-locator-0.1
+  (package
+    (name "rust-java-locator")
+    (version "0.1.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "java-locator" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1hl06w62yzvfzrl6pwgzssx8006s508hylnq44n22by5v4pky04h"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; Tests want java in the path
+       #:cargo-inputs (("rust-docopt" ,rust-docopt-1)
+                       ("rust-glob" ,rust-glob-0.3)
+                       ("rust-lazy-static" ,rust-lazy-static-1))))
+    (home-page "https://github.com/astonbitecode/java-locator")
+    (synopsis "Locates a Java installation in the host")
+    (description "Locates a Java installation in the host.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-javascriptcore-rs-sys-0.2
   (package
     (name "rust-javascriptcore-rs-sys")