diff options
| author | tv <tv@krebsco.de> | 2026-12-01 00:53:00 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 01:41:11 +0000 |
| commit | 0a32f2f57d9e928b7f657decd81c0658eb416e37 (patch) | |
| tree | fdee382dc832a93b006faaa9448f608f3a03be48 /nix | |
| parent | 30eb9a31ec7e4cf0ef683c86edb28ffc6fa3d54e (diff) | |
enstate: bash completion
A command until one is given, then the options it takes (each once, but
--config and --unset), and for PATH a submission (a directory) or a
source list (a file). The package installs it.
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/package.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nix/package.nix b/nix/package.nix index ecaf41b..997d2a3 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -1,5 +1,6 @@ # enstate, the program (README.md). { + installShellFiles, lib, runCommand, rustPlatform, @@ -21,6 +22,11 @@ rustPlatform.buildRustPackage { cp -r ${../tests} $out/tests ''; + nativeBuildInputs = [ installShellFiles ]; + postInstall = '' + installShellCompletion --bash ${../share/bash-completion/completions/enstate} + ''; + # The tests' fake systemctl looks at the store's lock with flock. nativeCheckInputs = [ util-linux ]; |
