From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] build-system: Add haskell-build-system. Date: Mon, 30 Mar 2015 10:16:49 +0200 Message-ID: <87k2xyhpce.fsf@gnu.org> References: <87wq1zyl2z.fsf@gnu.org> <877ftz52eq.fsf@mango.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcUsU-0000Hv-EE for guix-devel@gnu.org; Mon, 30 Mar 2015 04:17:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcUsO-0006gb-NJ for guix-devel@gnu.org; Mon, 30 Mar 2015 04:16:58 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcUsO-0006gV-Ka for guix-devel@gnu.org; Mon, 30 Mar 2015 04:16:52 -0400 In-Reply-To: (Federico Beffa's message of "Sun, 29 Mar 2015 16:45:38 +0200") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Federico Beffa Cc: Guix-devel Federico Beffa skribis: > Having never used nixpkgs, I'm not sure how they handle the database > in profiles. Would you have a pointer to a "standard" mechanism (like > how they handle 'dir' files, icon caches, ...). AFAIK there=E2=80=99s no general mechanism for that. For GHC, this is hand= led by adding a wrapper for the =E2=80=98ghc=E2=80=99 binary: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/g= hc/wrapper.nix https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/g= hcjs/wrapper.nix Handling it during profile creation, as you suggest, and avoiding the use of a wrapper sounds preferable to me. If you look under , many packages have an additional phase that does: rm $out/share/icons/hicolor/icon-theme.cache Some also explicitly wrap executables to set XDG_DATA_DIRS etc. like our =E2=80=98glib-or-gtk-build-system=E2=80=99 does: wrapProgram $f \ --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" Thanks, Ludo=E2=80=99.