trying to move postinstall step to niri itself
This commit is contained in:
parent
449de029e9
commit
836494cc5a
1 changed files with 20 additions and 0 deletions
|
@ -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" ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue