summaryrefslogtreecommitdiffstats
path: root/pkgs/rust/enstate
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-01 01:45:38 +0000
committertv <tv@krebsco.de>2026-12-01 01:45:38 +0000
commitae61626d5eaa340cd9920df626e4904ed82b2465 (patch)
treed3ebab528571430f5a99bfab1a876e35db0a0213 /pkgs/rust/enstate
parent235162ee73cf4418a91f8d7336b2f3675eec1f55 (diff)
enstate: install the bash completion
From the source, which has it since 0a32f2f.
Diffstat (limited to 'pkgs/rust/enstate')
-rw-r--r--pkgs/rust/enstate/default.nix17
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
+ '')
+ ];
}
[cgit] Unable to lock slot /tmp/cgit/6b000000.lock: Permission denied (13)