mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
niri: fix the installation files and its metadata
This commit is contained in:
parent
cb54f46d77
commit
a1a6d718c4
@ -63,18 +63,25 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs ./resources/niri-session
|
patchShebangs ./resources/niri-session
|
||||||
|
substituteInPlace ./resources/niri.service \
|
||||||
|
--replace '/usr/bin' "$out/bin"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm0755 resources/niri-session -t $out/libexec
|
install -Dm0755 resources/niri-session -t $out/bin
|
||||||
makeWrapper $out/libexec/niri-session \
|
|
||||||
|
# This session script is used as a system component so we may as well fully
|
||||||
|
# wrap this with nixpkgs' dependencies.
|
||||||
|
wrapProgram $out/bin/niri-session \
|
||||||
--prefix PATH ':' '${lib.makeBinPath [ coreutils systemd dbus ]}'
|
--prefix PATH ':' '${lib.makeBinPath [ coreutils systemd dbus ]}'
|
||||||
|
|
||||||
install -Dm0644 resources/niri.desktop -t $out/share/applications
|
install -Dm0644 resources/niri.desktop -t $out/share/wayland-sessions
|
||||||
install -Dm0644 resources/niri-portals.conf -t $out/share/xdg-desktop-portal
|
install -Dm0644 resources/niri-portals.conf -t $out/share/xdg-desktop-portal
|
||||||
install -Dm0644 resources/niri{-shutdown.target,.service} -t $out/share/systemd
|
install -Dm0644 resources/niri{-shutdown.target,.service} -t $out/lib/systemd/user
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.providedSessions = [ "niri" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/YaLTeR/niri";
|
homepage = "https://github.com/YaLTeR/niri";
|
||||||
description = "Scrollable tiling window manager";
|
description = "Scrollable tiling window manager";
|
||||||
|
Loading…
Reference in New Issue
Block a user