From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 1xqJDDr78V6MLwAA0tVLHw (envelope-from ) for ; Tue, 23 Jun 2020 12:53:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WI29Bzr78V4oRQAAbx9fmQ (envelope-from ) for ; Tue, 23 Jun 2020 12:53:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7681194053B for ; Tue, 23 Jun 2020 12:53:13 +0000 (UTC) Received: from localhost ([::1]:50622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jniQI-0003Or-QC for larch@yhetil.org; Tue, 23 Jun 2020 08:53:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jniQA-0003Nz-Ud for guix-patches@gnu.org; Tue, 23 Jun 2020 08:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jniQA-0006Vo-Lz for guix-patches@gnu.org; Tue, 23 Jun 2020 08:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jniQA-0006ou-L0 for guix-patches@gnu.org; Tue, 23 Jun 2020 08:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42000] [PATCH] gnu: Add drip. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Jun 2020 12:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42000 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Neidhardt Cc: 42000@debbugs.gnu.org Received: via spool by 42000-submit@debbugs.gnu.org id=B42000.159291675326161 (code B ref 42000); Tue, 23 Jun 2020 12:53:02 +0000 Received: (at 42000) by debbugs.gnu.org; 23 Jun 2020 12:52:33 +0000 Received: from localhost ([127.0.0.1]:35669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jniPh-0006nt-Gf for submit@debbugs.gnu.org; Tue, 23 Jun 2020 08:52:33 -0400 Received: from flashner.co.il ([178.62.234.194]:57602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jniPc-0006na-9V for 42000@debbugs.gnu.org; Tue, 23 Jun 2020 08:52:31 -0400 Received: from localhost (unknown [31.210.181.184]) by flashner.co.il (Postfix) with ESMTPSA id 08C9C4007B; Tue, 23 Jun 2020 12:52:21 +0000 (UTC) Date: Tue, 23 Jun 2020 15:51:49 +0300 From: Efraim Flashner Message-ID: <20200623125149.GG22974@E5400> References: <20200622093154.15486-1-mail@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JI+G0+mN8WmwPnOn" Content-Disposition: inline In-Reply-To: <20200622093154.15486-1-mail@ambrevar.xyz> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: rp9nW0m1I3yA --JI+G0+mN8WmwPnOn Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 22, 2020 at 11:31:54AM +0200, Pierre Neidhardt wrote: > * gnu/packages/java.scm (drip): New variable. > --- > gnu/packages/java.scm | 52 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 52 insertions(+) >=20 > diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm > index d5bc713c70..d4bb88cf49 100644 > --- a/gnu/packages/java.scm > +++ b/gnu/packages/java.scm > @@ -165,6 +165,58 @@ defined in The Java Language Specification into the = bytecoded instruction set > and binary format defined in The Java Virtual Machine Specification.") > (license license:ibmpl1.0))) > =20 > +(define-public drip > + ;; Last release is from 2014, with few important commits afterwards. 'with few important commits' has a negative connotation, while 'with a few important commits' has a positive connotation. Considering we're using a commit after the release I assume we want those commits. There's probably something more concrete than that but we want the extra 'a'. > + (let ((commit "a4bd00df0199e78243847f06cc04ecaea31f8f08")) > + (package > + (name "drip") > + (version (git-version "0.2.4" "1" commit)) > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/ninjudd/drip") > + (commit commit))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "0wzmjwfyldr3jn49517xd8yn7dgdk8h88qkga3kjyg1zc375ylg2"= )))) > + (build-system gnu-build-system) > + (native-inputs > + `(("jdk" ,icedtea "jdk"))) > + (arguments > + `(#:tests? #f ; No tests. > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) > + (add-before 'install 'fix-wrapper > + (lambda* (#:key inputs #:allow-other-keys) > + (let ((jps (string-append (assoc-ref inputs "jdk") "/bin/= jps"))) > + (substitute* "bin/drip" > + (("jps") jps) > + (("brew update && brew upgrade drip") "guix pull && g= uix 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\\= =2Ejava \\]\\]") > + "true"))))) Don't forget to return #t and make sure the lines aren't too long. > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (bin (string-append out "/bin"))) > + (mkdir-p bin) > + (for-each > + (lambda (file) > + (install-file (string-append "bin/" file) bin)) > + '("drip" "drip_daemon" "drip_proxy")) > + (install-file "drip.jar" out))))))) Is drip.jar supposed to be at the root of %output? Also, this phase should return #t. > + (home-page "https://github.com/ninjudd/drip") > + (synopsis "Fast Java Virtual Machine launching") I see Github has "Fast JVM launching without the hassle of persistent JVMs." which doesn't look too long. Alternatively I'd consider switching 'Fast' to 'Faster'. > + (description "Drip is a launcher for the Java Virtual Machine that > +provides much faster startup times than the java command. The @command{= drip} ^@command{java} here too > +script is intended to be a drop-in replacement for the @command{java} co= mmand, > +only faster.") > + (license license:epl1.0)))) > + > ;; This is the last version of GNU Classpath that can be built without E= CJ. > (define classpath-bootstrap > (package > --=20 > 2.26.2 >=20 I have nothing to test it with but it looks good with those few changes. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --JI+G0+mN8WmwPnOn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl7x+uIACgkQQarn3Mo9 g1GdLw/+J2TX4xqkXDs8uNkIUTsZ6G53hXkNUeI6qoRsqKdZ5Ejy/zzVmXQataUp xT7+T8HQCfVVpBYQlrVTf+uApYmZGdP38IyzCqoq5VH9166eWYskWQieJWwL74A1 6hD/C4S1y374doiivwOyVyDTp8YpuAdtznSkKfeTZU6tuPcgTR0qNybbruo4AYXI sXkLFkpjhHgo3YXxtiQxzUMt68AJpXg/VcySOE7yC7RUCD/I//MnSBiV83dtEYt2 3e+4huiahXANam/KeXCWYT93kg/Tp4LjaZWdpoFXff1EoogzvvU6pFH0c6uKxql5 BIw8ct1RUnqL3T8BuYkNb6bK2W9YKN0LhX/BcVItOo+4PPwrbbwwYomub5D2X5zt ggV1th8o/q68pvB7ypICalNg//A2ckWCRxoa+ZaIrO1GoQHrXIZZZFIke5xRup3p MjcLpPZXJgtwRvMa7cIAW9RbZt1BhUgY6TrXcTtOOo03oIYSBoWjPmQ8WqMJNNXf z0+7w0uWBUMlO9fePmx8hZA0HrAjsEK4nIvwg3s2Ry1NZaavC7gMkbufCcIqhZJU 0Zzmx/1RQeHGtXAd3ahxcC+JympZ+MQYjU6ro7MMxv7g4sTtbofdjz21ZForJpfo HLEb9cuKQRgRDNW+YKMUvV43nFcUUQsl3OAQ5MNJS2nCpvkWgfg= =K6nh -----END PGP SIGNATURE----- --JI+G0+mN8WmwPnOn--