{ cleanCargoSource, inputs, installShellFiles, runCommand }: { name = "enstate"; meta.mainProgram = "enstate"; # 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 */ '' installShellCompletion --bash ${src}/share/bash-completion/completions/enstate '') ]; }