For some reason correcting the path to the settings daemon
causes the icons to not be the elementary one's.
Hardcoding this fixes this very simply without
the need for the complicated wrapping.
Whenever we create scripts that are installed to $out, we must use runtimeShell
in order to get the shell that can be executed on the machine we create the
package for. This is relevant for cross-compiling. The only use case for
stdenv.shell are scripts that are executed as part of the build system.
Usages in checkPhase are borderline however to decrease the likelyhood
of people copying the wrong examples, I decided to use runtimeShell as well.
We need this to be customized because in the latest GNOME
the desktop file name for evince changed from `evince.desktop` to
`org.gnome.Evince.desktop`.
Additonally we don't have pantheon-mail so we have to switch that
out for geary.
Also note that we're using the desktop specific type
of mimeapps.list[0]. This makes the defaults only apply for the
pantheon desktop.
[0]: https://specifications.freedesktop.org/mime-apps-spec/latest/ar01s02.html