Unverified Commit c8c1e678 authored by Guillaume Girol's avatar Guillaume Girol Committed by GitHub
Browse files

Merge pull request #214413 from symphorien/evolution_ews_schema3

evolutionWithPlugins: wrap with evolution schema
parents 1945d198 7dc8f2ab
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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