From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: What for 0.5?
Date: Mon, 11 Nov 2013 21:35:12 +0100 [thread overview]
Message-ID: <87a9haisn3.fsf@gnu.org> (raw)
In-Reply-To: <20131111175017.GA12274@debian> (Andreas Enge's message of "Mon, 11 Nov 2013 18:50:17 +0100")
Andreas Enge <andreas@enge.fr> skribis:
> On Wed, Nov 06, 2013 at 02:04:10PM +0100, Ludovic Courtès wrote:
>> • Use a hack like that of Nixpkgs, which systematically copies and
>> rebuilds (with glib-compile-schemas) the “standard” schemas: see
>> ‘doCompileSchemas’ at
>> <https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/gnome-3/core/gsettings-desktop-schemas/default.nix>
>> and its use at
>> <https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/gnome-3/core/evince/default.nix>.
>>
>> The latter seems reasonable, and fairly easy to do.
>
> Could you elaborate on what is happening there? It looks rather mysterious
> to me.
There’s this snippet:
--8<---------------cut here---------------start------------->8---
doCompileSchemas = ''
for pkg in "${gsettings_desktop_schemas}" "${gtk3}"; do
cp -s $pkg/share/glib-2.0/schemas/*.gschema.xml $out/share/glib-2.0/schemas/
done
${glib}/bin/glib-compile-schemas $out/share/glib-2.0/schemas/
'';
--8<---------------cut here---------------end--------------->8---
that gets inserted in the post-install phase of Evince and similar
programs.
In addition, Evince & co. have their $XDG_DATA_DIRS that refers to those
schemas:
--8<---------------cut here---------------start------------->8---
wrapProgram "$out/bin/evince" \
--prefix XDG_DATA_DIRS : "${shared_mime_info}/share:$out/share"
--8<---------------cut here---------------end--------------->8---
In effect, it makes sure that all the standard schemas are available
along with each application that needs it.
Ludo’.
next prev parent reply other threads:[~2013-11-11 20:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-03 22:01 What for 0.5? Ludovic Courtès
2013-11-05 18:10 ` Cyril Roelandt
2013-11-06 13:04 ` Ludovic Courtès
2013-11-11 17:50 ` Andreas Enge
2013-11-11 20:35 ` Ludovic Courtès [this message]
2013-12-03 21:44 ` Ludovic Courtès
2013-12-09 21:19 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9haisn3.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=andreas@enge.fr \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).