Closed bobby285271 closed 1 year ago
I was looking at this: https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/cinnamon/cinnamon-common/use-sane-install-dir.patch
I can't apply it directly to Cinnamon because we don't install etc to the install prefix. Maybe an additional meson_options entry to specify a root folder or something along those lines...?
It looks like only one file needs to be installed to etc right now etc/xdg/menus/cinnamon-applications.menu
, for this one get_option('sysconfdir')
should work for us (just browsed through some examples in GNOME).
an additional meson_options entry to specify a root folder
If you mean
install_subdir(
'files',
- install_dir: '/',
+ install_dir: get_option('customrootdir')
strip_directory: true,
)
This probably won't work for us unfortunately since we install the datadir stuff to /nix/store/xxxxx-cinnamon-common-5.6.7/share
and not /nix/store/xxxxx-cinnamon-common-5.6.7/usr/share
In NixOS packages are installed to their own separate prefix (i.e.
/nix/store/3srl963wzvfm3q3mnbnvrgz34yd93y7q-cinnamon-settings-daemon-5.6.1/share/icons/hicolor
instead of/usr/share/icons/hicolor
), we don't have permission to write things to/
in build time (we actually don't have/usr/share
) :disappointed:https://github.com/NixOS/nixpkgs/blob/4106c75/pkgs/desktops/cinnamon/cinnamon-settings-daemon/use-sane-install-dir.patch
(Yeah we are also carrying the same patch for cinnamon, but it should be fine to upstream the cinnamon-settings-daemon one first since only some icons are included in
files
here and no else paths are hardcoded)