Commit 7dc8f2ab authored by Guillaume Girol's avatar Guillaume Girol
Browse files

evolutionWithPlugins: wrap with evolution schema

parent 4d7c2644
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