diff options
Diffstat (limited to 'pkgs/rust/enstate')
| -rw-r--r-- | pkgs/rust/enstate/default.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/rust/enstate/default.nix b/pkgs/rust/enstate/default.nix index 9184f217..30682367 100644 --- a/pkgs/rust/enstate/default.nix +++ b/pkgs/rust/enstate/default.nix @@ -1,7 +1,18 @@ -{ cleanCargoSource, inputs }: +{ cleanCargoSource, inputs, installShellFiles, runCommand }: -{ - name = "enstate"; +let # The populated source, as for the NixOS module. src = cleanCargoSource "enstate" inputs.enstate; +in + +{ + name = "enstate"; + inherit src; + extraPaths = [ + (runCommand "enstate-bash-completion" { + nativeBuildInputs = [ installShellFiles ]; + } /* sh */ '' + installShellCompletion --bash ${src}/share/bash-completion/completions/enstate + '') + ]; } |
