diff options
Diffstat (limited to 'pkgs/rust/enstate/default.nix')
| -rw-r--r-- | pkgs/rust/enstate/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/rust/enstate/default.nix b/pkgs/rust/enstate/default.nix index 9184f217..ab39cd41 100644 --- a/pkgs/rust/enstate/default.nix +++ b/pkgs/rust/enstate/default.nix @@ -1,7 +1,16 @@ -{ cleanCargoSource, inputs }: +{ cleanCargoSource, inputs, installShellFiles, runCommand }: { name = "enstate"; + meta.mainProgram = "enstate"; # The populated source, as for the NixOS module. src = cleanCargoSource "enstate" inputs.enstate; + # From the source as built, which can be a checkout instead. + extraPaths = { src }: [ + (runCommand "enstate-bash-completion" { + nativeBuildInputs = [ installShellFiles ]; + } /* sh */ '' + installShellCompletion --bash ${src}/share/bash-completion/completions/enstate + '') + ]; } |
