From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBRRR-0002Hj-Cm for guix-patches@gnu.org; Wed, 25 Apr 2018 16:55:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBRRO-0001Ox-8u for guix-patches@gnu.org; Wed, 25 Apr 2018 16:55:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59920) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBRRO-0001On-5I for guix-patches@gnu.org; Wed, 25 Apr 2018 16:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fBRRN-00083g-R8 for guix-patches@gnu.org; Wed, 25 Apr 2018 16:55:01 -0400 Subject: [bug#31250] [PATCH] Add leiningen Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: Date: Wed, 25 Apr 2018 22:54:09 +0200 In-Reply-To: (Charlie Ritter's message of "Tue, 24 Apr 2018 11:44:56 -0400") Message-ID: <87k1svovm6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Charlie Ritter Cc: 31250@debbugs.gnu.org Hello, Charlie Ritter skribis: > From eac978c99ef288926530dcdee64cc9e3b7b8fe32 Mon Sep 17 00:00:00 2001 > From: Charlie Ritter > Date: Tue, 24 Apr 2018 11:42:39 -0400 > Subject: [PATCH] gnu: Add leiningen. > > * gnu/packages/java.scm (leiningen): New variable. Good to see the family of package managers *and* Lisps grow in Guix. :-) > + (source (origin > + (method url-fetch/tarbomb) > + (uri (string-append > + "https://github.com/technomancy/" > + name "/archive/" version ".tar.gz")) > + (sha256 > + (base32 > + "0hjjszxqhc9sh31dpirak3c5ws90z41ypcc16y4s1q35ydlajv3w"))= )) > + (build-system ant-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (delete 'configure) > + (delete 'build) > + (delete 'check) > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (install-file (string-append > + ,name "-" ,version "/bin/lein") > + (string-append > + (assoc-ref outputs "out") "/bin"))))))) Unfortunately installing the =E2=80=98lein=E2=80=99 script alone won=E2=80= =99t cut it. The issue is that, AIUI, the script downloads and installs pre-built Jars on a first run (through its =E2=80=98self_install=E2=80=99 function). The policy for Guix is to build things from source. So we would have to provide Leiningen and its dependencies as packages built from source, and to remove the auto-download functionality from the script. That=E2=80=99s obviously more work. WDYT? Thanks, Ludo=E2=80=99.