From 4f197a03794ff34ebbb0c83d38d76b0658e6fc65 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 01:45:38 +0000 Subject: enstate: install the bash completion From the source, which has it since 0a32f2f. --- pkgs/rust/enstate/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'pkgs/rust/enstate/default.nix') 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 + '') + ]; } -- cgit v1.3.1