From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBgDu-0003ul-BA for guix-patches@gnu.org; Thu, 26 Apr 2018 08:42:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBgDq-0004az-6j for guix-patches@gnu.org; Thu, 26 Apr 2018 08:42:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60409) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBgDq-0004an-2G for guix-patches@gnu.org; Thu, 26 Apr 2018 08:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fBgDp-000296-M1 for guix-patches@gnu.org; Thu, 26 Apr 2018 08:42:01 -0400 Subject: [bug#31250] [PATCH] Add leiningen Resent-Message-ID: Date: Thu, 26 Apr 2018 12:41:32 +0000 From: Nils Gillmann Message-ID: <20180426124132.u62mcbnxflxvjsti@abyayala> References: <87k1svovm6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87k1svovm6.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Charlie Ritter , 31250@debbugs.gnu.org Ludovic Courtès transcribed 1.7K bytes: > 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. Nice! > 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 ‘lein’ script alone won’t cut it. The > issue is that, AIUI, the script downloads and installs pre-built Jars on > a first run (through its ‘self_install’ function). Yes, that's why my attempt at leiningen has been "sleeping" for a long time now... > 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. But this is on first run, not during the installation as far as I remember. So in my opinion that's not an immediate blocker for the initial package. The obvious fix afterwards is to apply the building from source. > That’s obviously more work. WDYT? > > Thanks, > Ludo’. > > >