trying to move postinstall step to niri itself

This commit is contained in:
twoneis 2023-11-19 11:53:59 +01:00
parent 449de029e9
commit 836494cc5a

View file

@ -55,5 +55,25 @@ rustPlatform.buildRustPackage {
"-Wl,--pop-state"
];
postInstall =
let
niriSession = ''
[Desktop Entry]
Name=niri
Comment=Scrolling wayland compositor
Exec=niri
Type=Application
'';
niriPortals = ''
[preferred]
default=gnome;gtk;
'';
in ''
mkdir -p $out/share/wayland-sessions
echo "${niriSession}" > $out/share/wayland-sessions/niri.desktop
mkdir -p $out/xdg-desktop-portal
echo "${niriSession}" > $out/share/wayland-sessions/niri-portals.conf
'';
passthru.providedSessions = [ "niri" ];
}