summaryrefslogtreecommitdiffstats
path: root/pkgs/rust/enstate
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-01 02:12:58 +0000
committertv <tv@krebsco.de>2026-12-01 02:12:58 +0000
commit8cc8b7f4307c21f6e14b2ba2b7c65f011dda9f74 (patch)
tree12e1a5ffffc82788b9b2d85a3a9bd185f7b31037 /pkgs/rust/enstate
parentd923fbef3e488b9329f52164a3722316b9f55cde (diff)
enstate: take the bash completion from the source as built
With ~/sync/src/enstate, the package was built from it, but the completion came from inputs.enstate, on the deploying host its own /var/src/enstate, from before the completion existed.
Diffstat (limited to 'pkgs/rust/enstate')
-rw-r--r--pkgs/rust/enstate/default.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/pkgs/rust/enstate/default.nix b/pkgs/rust/enstate/default.nix
index 30682367..c7683a21 100644
--- a/pkgs/rust/enstate/default.nix
+++ b/pkgs/rust/enstate/default.nix
@@ -1,14 +1,11 @@
{ cleanCargoSource, inputs, installShellFiles, runCommand }:
-let
- # The populated source, as for the NixOS module.
- src = cleanCargoSource "enstate" inputs.enstate;
-in
-
{
name = "enstate";
- inherit src;
- extraPaths = [
+ # 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 */ ''