mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #234939 from cdepillabout/nomad-bash-completion
nomad: add bash completion
This commit is contained in:
commit
31cd1b4afb
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
, buildGo120Module
|
||||
, fetchFromGitHub
|
||||
, nixosTests
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -23,11 +24,18 @@ let
|
|||
inherit sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
# ui:
|
||||
# Nomad release commits include the compiled version of the UI, but the file
|
||||
# is only included if we build with the ui tag.
|
||||
tags = [ "ui" ];
|
||||
|
||||
postInstall = ''
|
||||
echo "complete -C $out/bin/nomad nomad" > nomad.bash
|
||||
installShellCompletion nomad.bash
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.nomadproject.io/";
|
||||
description = "A Distributed, Highly Available, Datacenter-Aware Scheduler";
|
||||
|
|
Loading…
Reference in a new issue