about summary refs log tree commit diff
path: root/pkgs/development/libraries/glib/setup-hook.sh
AgeCommit message (Collapse)AuthorFilesLines
2020-04-06glib: put gsettings directory in targetMatthew Bauer1-2/+1
These should be runtime, not build time deps
2020-03-04glib.setupHook: run glibPreFixupPhase before gappsWrapperArgsHookJan Tojnar1-1/+9
Since we split wrapGAppsHook and move its variable initialization to preFixupPhases in #81475, it was getting run before glibPreFixupPhase which sets GSETTINGS_SCHEMAS_PATH variable gappsWrapperArgsHook depends on. Let's introduce this ugly hack to ensure glibPreFixupPhase will run before gappsWrapperArgsHook.
2019-11-21glib.setupHook: fix make_glib_find_gsettings_schemasJan Tojnar1-2/+2
GSETTINGS_SCHEMAS_PATH needs to contain a list of directories containing glib-2.0/schemas. 770a4c7946a1c55bf6295a34a42e1c4b657d1088 broke that by accidentally adding glib-2.0 to the paths.
2019-11-08glib: Fix setup hookJohn Ericson1-3/+5
It was not robust against multiple matching directories, as the called function takes exactly 3 arguments.
2019-01-17glib.setupHook: fix gsettings-schemas locationJan Tojnar1-2/+2
GLib setup hook expects GSettings schemas to be installed in ${!outputLib} and tries to move them to gsettings-schemas/$name subdirectory to prevent conflicts. But the schemas will only end up in the library output when the build system recognizes makeFlags set by the setup hook, and in that case the move is not necessary, since the flag already includes the subdirectory. Normally, this is not an issue, since most packages relying on GSettings schemas either still use Autotools with gsettings.m4, or do not have a lib output set. But with the promulgation of multiple outputs in Nixpkgs and more and more projects switching to Meson, the issue will become increasingly common. We first noticed this problem with nm-applet. Closes https://github.com/NixOS/nixpkgs/issues/45043
2018-11-14glib: only add gsettingsschemadir in makeMatthew Bauer1-1/+1
gsettingsschemedir only works in make where you can set any variable from the command line as in “make VAR=VAL”. Other build systems may not support this kind of loose overriding of variables. This broke a scons build here: https://hydra.nixos.org/build/84073119/
2018-01-06glib: fix pre phasesJosé Romildo Malaquias1-3/+2
*Phases are strings, not arrays.
2017-12-30treewide: Don't use envHook anymoreJohn Ericson1-1/+1
This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
2015-10-28glib: fixup output paths and use system pcreVladimír Čunát1-22/+10
Now pcre costs us <0.5 MB and using internal one would cost ~0.2 MB, so if we take into account that pcre is often used, e.g. by grep...
2015-10-03Merge commit staging+systemd into closure-sizeVladimír Čunát1-0/+6
Many non-conflict problems weren't (fully) resolved in this commit yet.
2015-06-14glib hooks: move gsettings-schemas if on wrong placeVladimír Čunát1-0/+6
Fixes #7325.
2015-06-08Revert "glib hooks: move gsettings-schemas if on wrong place"Vladimír Čunát1-10/+3
This reverts commit 5df1aadd68a157997c5ff419a8f4e1db23e5a5ae. It introduced some problems.
2015-06-07glib hooks: move gsettings-schemas if on wrong placeVladimír Čunát1-3/+10
Fixes #7325.
2014-08-30WIP: getting betterVladimír Čunát1-0/+15
2014-08-27WIP: getting goodVladimír Čunát1-1/+1
2014-04-05glib gschemas hook: fixup #1901Vladimír Čunát1-6/+6
- move frome $out to $out/share - fix quoting that prevented globbing - indent by spaces (as it is more common in nixpkgs; 4 spaces for shell) More work is still needed for some individual packages.
2014-04-02Merge #1901: add preFixupPhases to stdenv; for gsettingsVladimír Čunát1-0/+17
Without this stdenv change it seems difficult to fix some glib's gsettings issues, as the folders in question may (not) be created in installPhase.