From 0a32f2f57d9e928b7f657decd81c0658eb416e37 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 00:53:00 +0000 Subject: 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. --- nix/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nix') 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 ]; -- cgit v1.3.1