From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJLVA-0002Vy-9a for guix-patches@gnu.org; Fri, 09 Jun 2017 11:07:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJLV9-00015l-5u for guix-patches@gnu.org; Fri, 09 Jun 2017 11:07:04 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJLV9-00015g-2f for guix-patches@gnu.org; Fri, 09 Jun 2017 11:07:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dJLV8-00063R-Sz for guix-patches@gnu.org; Fri, 09 Jun 2017 11:07:02 -0400 Subject: bug#27296: [PATCH 33/35] gnu: Add texlive-union. Resent-Message-ID: References: <20170609104559.17416-1-rekado@elephly.net> <20170609104559.17416-33-rekado@elephly.net> <87fuf9jjj5.fsf@gnu.org> From: Ricardo Wurmus In-reply-to: <87fuf9jjj5.fsf@gnu.org> Date: Fri, 09 Jun 2017 17:06:47 +0200 Message-ID: <87shj9ci9k.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: 27296@debbugs.gnu.org Ludovic Courtès writes: > Ricardo Wurmus skribis: > >> * gnu/packages/tex.scm (texlive-union): New procedure. > > [...] > >> +(define-public texlive-union (lambda* (#:optional (packages '())) >> + "Return 'texlive-union' package which is a union of PACKAGES and the >> +standard LaTeX packages." >> + (let ((default-packages >> + (list texlive-bin >> + texlive-dvips >> + texlive-fonts-cm > > (Indentation is unusual here.) > > Does ‘texlive-union’ become the user interface to install LaTeX, along > with ‘texlive-tiny’ and maybe a ‘texlive-full’ meta-package? > > Do you think this could be turned into a profile hook, somehow, such > that users who install a bunch of ‘texlive-*’ packages would immediately > get something that works without having to write Scheme code that calls > ‘texlive-union’? “texlive-union” is primarily for the benefit of package definitions that currently use “texlive” as an input, as the alternative is for these packages to set a lot of environment variables in build phases. I reduced the number of variables by providing texmf.cnf, but at the very least packages would have to set TEXMFCNF and provide their own texmf.cnf to make the texlive binaries find packages, fonts, configurations, etc. A profile hook would be the best way to handle the installation of packages into profiles. I just haven’t written it yet :) >> + (license (map package-license (append default-packages packages))))))) > > ‘package-license’ can return either a or a list, so ideally > we’d concatenate the lists. :-) Ouch! Yes, of course! -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net