Skip to content

Commit 7ab149e

Browse files
authored
chore(flake): add shell completions generation (#139)
1 parent 29e0ef4 commit 7ab149e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@
5959
allowBuiltinFetchGit = true;
6060
};
6161

62+
nativeBuildInputs = [ pkgs.installShellFiles ];
63+
postInstall = lib.optionalString (pkgs.stdenv.buildPlatform.canExecute pkgs.stdenv.hostPlatform) ''
64+
installShellCompletion --cmd lintspec \
65+
--bash <($out/bin/lintspec completions -s bash) \
66+
--fish <($out/bin/lintspec completions -s fish) \
67+
--zsh <($out/bin/lintspec completions -s zsh)
68+
'';
69+
6270
doCheck = false;
6371
};
6472
}

0 commit comments

Comments
 (0)