Merge pull request #214413 from symphorien/evolution_ews_schema3

evolutionWithPlugins: wrap with evolution schema
This commit is contained in:
Guillaume Girol
2023-02-08 21:59:53 +00:00
committed by GitHub
@@ -7,10 +7,16 @@ symlinkJoin {
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
declare -a schemas;
for plugin in ${toString plugins}; do
for schema in $plugin/share/gsettings-schemas/*; do
schemas+=($schema);
done
done
for i in $out/bin/* $out/libexec/**; do
if [ ! -d $i ]; then
echo wrapping $i
wrapProgram $i --set EDS_EXTRA_PREFIXES "${lib.concatStringsSep ":" plugins}"
wrapProgram $i --set EDS_EXTRA_PREFIXES "${lib.concatStringsSep ":" plugins}" --prefix XDG_DATA_DIRS : "''${schemas[@]}"
fi
done