diff options
| author | tv <tv@krebsco.de> | 2026-12-01 02:12:58 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 02:12:58 +0000 |
| commit | 8cc8b7f4307c21f6e14b2ba2b7c65f011dda9f74 (patch) | |
| tree | 12e1a5ffffc82788b9b2d85a3a9bd185f7b31037 /pkgs/rust/enstate/default.nix | |
| parent | d923fbef3e488b9329f52164a3722316b9f55cde (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/default.nix')
| -rw-r--r-- | pkgs/rust/enstate/default.nix | 11 |
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 */ '' |
