diff options
| author | tv <tv@krebsco.de> | 2026-12-01 00:53:00 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 02:20:41 +0000 |
| commit | fe68d2951a59096cf7c9b3039c08bc587cef6530 (patch) | |
| tree | 886872694df0b486ff5a2754ee2a0294f657d583 /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 ]; |
