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 | 8848b846a579685ac027a3d249a78a4ae97b9875 (patch) | |
| tree | 88ea9e191b2c2b3953e9fb854a5b66ed50d3b0c7 /pkgs | |
| parent | 83a81db2eaa0ff9374f8d8a55ed74df883b9c33b (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')
| -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 */ '' |
