nixpkgs-suyu/nixos/modules
Ambroz Bizjak d9fa88dfe8 Use a NixOS module for generating the gdk-pixbuf loaders cache.
Fixes issue #33231 and makes it possible to enable Plasma and KDE at the same time.

Previously, this worked like this:
- The gdk-pixbuf package comes with a cache file covering the modules bundled
  with gdk-pixbuf.
- The librsvg package comes with a cache covering modules from gdk-pixbuf as
  well as librsvg.
- plasma5 and xfce modules set the environment variable GDK_PIXBUF_MODULE_FILE
  to the one from librsvg, so that SVG was supported in addition to the
  formats supported by gdk-pixbuf. However if both were enabled a configuration
  conflict would result (despite setting to the same value).

While this sort of worked (ignoring the conflict which perhaps could be hacked
around), it is unscalable and a hack, as there would be a real problem when one
wanted to add a third package that supports additional image formats.

A new NixOS module (gdk-pixbuf) is added with a configuration option
(modulePackages) that other modules use to request specific packages to be
included in the loaders cache. When any package is present in the list, the
module generates a system-wide loaders cache which includes the requested
packages (and always gdk-pixbuf itself), and sets the environment variable
GDK_PIXBUF_MODULE_FILE to point to the generated cache file.

The plasma5 and xfce modules are updated to add librsvg to modulePackages
instead of setting GDK_PIXBUF_MODULE_FILE.

Note that many packages create wrappers that set GDK_PIXBUF_MODULE_FILE,
some directly to the one from librsvg. Therefore this change does not
change the existing hack in the librsvg package which ensures that
file is generated. This change aims only to solve the conflict in the
global environent variable configuration.
2018-06-25 16:23:45 +02:00
..
config nixos/no-x-libs: Switch to using nixpkgs.overlays 2018-06-11 20:58:33 +02:00
hardware brightnessctl: init at 0.3.2 (#42102) 2018-06-16 18:15:42 -04:00
i18n/input-method Added cross-references to NixOS manual 2018-04-12 09:39:14 +10:00
installer not-detected: use lib.mkDefault 2018-06-17 23:25:41 +03:00
misc Revert "nixpkgs module: Fix defaulting of localSystem and system" 2018-05-31 15:55:36 -04:00
profiles nixos/installer: Drop dmraid 2018-05-25 01:55:51 +03:00
programs nixos/npm: add npm to the system closure by default (#42420) 2018-06-25 00:11:55 +02:00
security manual: Clarify that limits.conf doesn't apply to systemd services. (#40267) 2018-05-12 17:44:57 +02:00
services Use a NixOS module for generating the gdk-pixbuf loaders cache. 2018-06-25 16:23:45 +02:00
system nixos/stage-1: Make find-libs not choke on dynamic linker being in DT_NEEDED 2018-06-20 17:58:02 +03:00
tasks nixos/zfs: mount AFTER import 2018-06-15 20:58:43 +02:00
testing nixos/tests: set default stateVersion in test VMs 2018-05-14 00:01:15 +02:00
virtualisation azure: stop carrying qemu-220 patch 2018-06-12 02:06:03 -07:00
module-list.nix Use a NixOS module for generating the gdk-pixbuf loaders cache. 2018-06-25 16:23:45 +02:00
rename.nix Merge pull request #42133 from markuskowa/pgbackup 2018-06-20 22:21:52 +01:00