From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KCbpIvjUWV+IVQAA0tVLHw (envelope-from ) for ; Thu, 10 Sep 2020 07:25:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KEioHvjUWV9mcgAAB5/wlQ (envelope-from ) for ; Thu, 10 Sep 2020 07:25:44 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B232994062D for ; Thu, 10 Sep 2020 07:25:43 +0000 (UTC) Received: from localhost ([::1]:42410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGGxi-0002LL-JB for larch@yhetil.org; Thu, 10 Sep 2020 03:25:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGGwx-0001Kb-VB for guix-devel@gnu.org; Thu, 10 Sep 2020 03:24:55 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGGwv-0004dr-83 for guix-devel@gnu.org; Thu, 10 Sep 2020 03:24:55 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D0F7F16005C for ; Thu, 10 Sep 2020 09:24:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1599722690; bh=J40HV8YELmXRDMdGajlN+BV0p0m/2KJAtqRTdH1uyc0=; h=From:To:Cc:Subject:Date:From; b=gKzZIeoa7GFSZfyLgccP5fmnrF3QU4d+TTFloMWhpccp0Or3fw3ESRSsSFMkdmgvi j3OxfAqfyvgqrtT7IY+O45cCFt4WlcseSRchVP79q9rKESaHoEpfYbGQsksPyk3nFT QX+r3rLl8eY4wez1NXSmYK1LkApkf8J0SJz2VWFB+kVrOiSu9VGvs78JcfWWo7TuF8 5mDWoYSiHCYYNu6nPG4Q/hjl1jmH6GjU1uIFAlwK9XO8FCcVfy4NuzuxTdKsUy1bPD UayyNTXyVi/xophIsMJhNeWlN6+8xEqcJiDWL/izfwR10ZhGf0vv/XN/0uDGGRo/be RRE/k9uOMqHiA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Bn9Ps1kZ8z9rxY; Thu, 10 Sep 2020 09:24:49 +0200 (CEST) References: <878sdjfjks.fsf@yamatai> <87y2ljbaft.fsf@elephly.net> User-agent: mu4e 1.4.13; emacs 27.1 From: Guillaume Le Vaillant To: Ricardo Wurmus Subject: Re: Profile hook in build environment? In-reply-to: <87y2ljbaft.fsf@elephly.net> Date: Thu, 10 Sep 2020 09:24:37 +0200 Message-ID: <87bliert56.fsf@yamatai> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.65; envelope-from=glv@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/10 03:24:51 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=gKzZIeoa; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: gtd8rpntdCq4 --=-=-= Content-Type: text/plain Ricardo Wurmus skribis: > Guillaume Le Vaillant writes: > >> Is there a way to generate files and add them to the environment created >> by 'guix build' as it can be done with profile hooks? > > Yes, the build system can do whatever it wants. The > texlive-build-system, for example, builds a union directory from all TeX > Live inputs and then modifies the configuration file. Thanks for the pointer, it has been very useful. Pierre Neidhardt skribis: > Hi Guillaume, > > Thanks for taking a shot at this ;) > > Why would we need to generate the ASDF configuration file in a hook? > Can't we do it at build time? > > Cheers! I got rid of the hook and now I'm creating all the required files/links at build time in 'etc/common-lisp/source-registry.conf.d/' and in 'etc/common-lisp/asdf-output-translations.conf.d/'. It seems to work well with packages having simple definitions. Now I have to check and adapt the more complex ones. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCX1nUtQ8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j8DugEAnEvet/JDYB3OXWjhkI500cpj3CWzfh7j3/Sr YE77uNUA/jMXLZa8t29ceJqSUIk3GtvAK+7F17SHwhO6E9ECo0L4 =P+As -----END PGP SIGNATURE----- --=-=-=--