summaryrefslogtreecommitdiffstats
path: root/pkgs/rust/enstate/default.nix
blob: ab39cd41f98b3a5203220b409497ba4a7d95c4bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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
    '')
  ];
}