diff options
Diffstat (limited to 'pkgs/rust/enstate')
| -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 */ '' |
