forge
Explore
Log in

Don't you dare go Hollow

nix: Install shell completions (#1280)

Browse files at this commit

e11af089aaf43ff6f1d4036dbbddccc342c3bc29UnverifiedJohannes HornerParent: 5e549e1
flake.nixmodified+7 -0
@@ -39,6 +39,7 @@
39 rustPlatform,39 rustPlatform,
40 systemd,40 systemd,
41 wayland,41 wayland,
42+ installShellFiles,
42 withDbus ? true,43 withDbus ? true,
43 withSystemd ? true,44 withSystemd ? true,
44 withScreencastSupport ? true,45 withScreencastSupport ? true,
@@ -79,6 +80,7 @@
79 nativeBuildInputs = [80 nativeBuildInputs = [
80 rustPlatform.bindgenHook81 rustPlatform.bindgenHook
81 pkg-config82 pkg-config
83+ installShellFiles
82 ];84 ];
83 85
84 buildInputs =86 buildInputs =
@@ -117,6 +119,11 @@
117 119
118 postInstall =120 postInstall =
119 ''121 ''
122+ installShellCompletion --cmd niri \
123+ --bash <($out/bin/niri completions bash) \
124+ --fish <($out/bin/niri completions fish) \
125+ --zsh <($out/bin/niri completions zsh)
126+
120 install -Dm644 resources/niri.desktop -t $out/share/wayland-sessions127 install -Dm644 resources/niri.desktop -t $out/share/wayland-sessions
121 install -Dm644 resources/niri-portals.conf -t $out/share/xdg-desktop-portal128 install -Dm644 resources/niri-portals.conf -t $out/share/xdg-desktop-portal
122 ''129 ''