From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Install hook Date: Tue, 21 Mar 2017 09:11:19 +0100 Message-ID: <87d1dbf3rs.fsf@elephly.net> References: <1489919448.1067.2.camel@pelzflorian.de> <20170319112339.GA2875@jocasta.intra> <20170319131437.00d9608e@polymos.lepiller.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqEt7-0007U4-E5 for guix-devel@gnu.org; Tue, 21 Mar 2017 04:11:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqEt4-00009i-8r for guix-devel@gnu.org; Tue, 21 Mar 2017 04:11:29 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21053) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cqEt4-00008M-2p for guix-devel@gnu.org; Tue, 21 Mar 2017 04:11:26 -0400 In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: "pelzflorian (Florian Pelz)" Cc: guix-devel@gnu.org pelzflorian (Florian Pelz) writes: > On 03/19/2017 01:14 PM, Julien Lepiller wrote: >> I think install hooks are scripts run after each package installation, >> that are provided by the package itself. We already have a similar >> mechanism that takes place when building the user's profile. See >> http://git.savannah.gnu.org/cgit/guix.git/tree/guix/profiles.scm. >> For instance, we build a icon-theme.cache cache file for every icon >> theme in the user's profile. >> […] >> I think we should make sure that this file is never present in the >> output of a package, and add a function to build it in profiles.scm. >> >> Does it make any sense? >> > > Yes, exactly. These profile hooks look similar to what I meant. Would you like to give it a try to add a profile hook for building “gschemas.compiled” once for all packages in a given profile? Please also email a summary to bug-guix@gnu.org so that we can keep track of this. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net