From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Patterson Subject: bug#32770: Packaging SLIME/SWANK as Common Lisp library Date: Tue, 2 Oct 2018 04:55:31 -0400 Message-ID: <20181002045531.78223c72@mailservices.uwaterloo.ca> References: <87museeyy5.fsf@ambrevar.xyz> <20180929151630.00cf6396@mailservices.uwaterloo.ca> <87lg7iwu9i.fsf@ambrevar.xyz> <87k1n2wten.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7GTO-0000TI-0v for bug-guix@gnu.org; Tue, 02 Oct 2018 04:56:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7GTK-0002RJ-Qd for bug-guix@gnu.org; Tue, 02 Oct 2018 04:56:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:57714) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7GTK-0002RD-LA for bug-guix@gnu.org; Tue, 02 Oct 2018 04:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7GTK-0001TH-FT for bug-guix@gnu.org; Tue, 02 Oct 2018 04:56:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87k1n2wten.fsf@ambrevar.xyz> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Pierre Neidhardt Cc: 32770@debbugs.gnu.org Hi, On Sun, 30 Sep 2018 23:46:08 +0200 Pierre Neidhardt wrote: > Also see > > https://github.com/quicklisp/quicklisp-projects/issues/1561 > > There are some interesting links, mostly about the Nix system. See > the > > https://github.com/NixOS/nixpkgs/blob/5048b0d1f9e908665a01c35f49b2d9816128e089/pkgs/development/lisp-modules/quicklisp-to-nix-output/swank.nix > Having taken just a quick look at what's there, it seems that the approach is fairly different from what we're doing. They're using the default asdf build target, and I think they must be relying on output translations having been set up right to avoid re-compilation. I'm trying to get a Nix OS VM set up to play around with what's there. > file: I think it would have given us a clear hint with > ~asdFilesToKeep = ["swank.asd"];~, had we looked at Nix before. > It looks like they're doing that in all of the packages. In general, we shouldn't expect to have to bring definitions from upstream's asd file into our own. Asdf's best practices documentation warns against it. Also, they're using upstream slime, unlike your package, so I don't think anything is being compiled at all. The difference here between Nix's system and ours is that they're using the upstream asd file to load the system, whereas we generate our own just for the build's output. This allows us to load the compiled file (or files) directly, without having to rely on mapping source files to compiled files. > I haven't looked to closely into what else Nix is doing to package > Common Lisp, but it seems rather complete. Any good idea we could > borrow, Andy? It'd be nice to have an importer. Maybe we can use Nix's work to reduce the amount of investigation needed to get there. -- Andy