mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +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 = ''
|
||||
patchShebangs ./resources/niri-session
|
||||
substituteInPlace ./resources/niri.service \
|
||||
--replace '/usr/bin' "$out/bin"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm0755 resources/niri-session -t $out/libexec
|
||||
makeWrapper $out/libexec/niri-session \
|
||||
install -Dm0755 resources/niri-session -t $out/bin
|
||||
|
||||
# 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 ]}'
|
||||
|
||||
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{-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; {
|
||||
homepage = "https://github.com/YaLTeR/niri";
|
||||
description = "Scrollable tiling window manager";
|
||||
|
Loading…
Reference in New Issue
Block a user