summaryrefslogtreecommitdiffstats
path: root/pkgs/rust/enstate/default.nix
blob: 306823674ab65808bde95a139bc96bf308368e4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ cleanCargoSource, inputs, installShellFiles, runCommand }:

let
  # The populated source, as for the NixOS module.
  src = cleanCargoSource "enstate" inputs.enstate;
in

{
  name = "enstate";
  inherit src;
  extraPaths = [
    (runCommand "enstate-bash-completion" {
      nativeBuildInputs = [ installShellFiles ];
    } /* sh */ ''
      installShellCompletion --bash ${src}/share/bash-completion/completions/enstate
    '')
  ];
}