From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 26 08:41:09 2018 Received: (at 31250) by debbugs.gnu.org; 26 Apr 2018 12:41:09 +0000 Received: from localhost ([127.0.0.1]:40073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBgCy-00027v-Rw for submit@debbugs.gnu.org; Thu, 26 Apr 2018 08:41:09 -0400 Received: from static.195.114.201.195.clients.your-server.de ([195.201.114.195]:44390 helo=conspiracy.of.n0.is) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBgCw-00027l-En for 31250@debbugs.gnu.org; Thu, 26 Apr 2018 08:41:07 -0400 Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id 09ba0e70 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 26 Apr 2018 12:41:04 +0000 (UTC) Date: Thu, 26 Apr 2018 12:41:32 +0000 From: Nils Gillmann To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#31250] [PATCH] Add leiningen 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> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31250 Cc: Charlie Ritter , 31250@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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’. > > >