]> gitweb.factorcode.org Git - factor.git/commit
shell.nix: Define gdk pixbuf loaders from build dependencies.
authortimor <timor.dd@googlemail.com>
Tue, 16 Mar 2021 14:55:38 +0000 (15:55 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 16 Mar 2021 15:10:08 +0000 (08:10 -0700)
commit89569fc9ed6c7ab5880ad2fa3d891eafa281c987
treedff31e19a0abe0f0f162d701d8aecd6234d7f6ed
parentaf536f2a39a80a08495e16c069432ec5401c8285
shell.nix: Define gdk pixbuf loaders from build dependencies.

This resolves a problem when the wrapped Factor binary is executed with
`GDK_PIXBUF_MODULE_FILE` set to an incompatible version.  This happens if e.g.
Factor is run from within an Emacs that uses newer gdk versions.

Related NixOS issue: https://github.com/NixOS/nixpkgs/issues/54278

In the long run, this should be replaced by a derivation which correctly runs
through all the phases correctly to set up `wrapGAppsHook` correctly.  Even
then, the correct behavior would probably be to have the surrounding
environment (e.g. Emacs) restore the default variable value in it's
sub-environments.
shell.nix