go-task: install completion

This commit is contained in:
zowoq 2021-12-22 14:56:27 +10:00
parent 5d90841dd0
commit 4d39c78191

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "go-task";
@ -15,6 +15,8 @@ buildGoModule rec {
doCheck = false;
nativeBuildInputs = [ installShellFiles ];
subPackages = [ "cmd/task" ];
ldflags = [
@ -23,6 +25,8 @@ buildGoModule rec {
postInstall = ''
ln -s $out/bin/task $out/bin/go-task
installShellCompletion completion/{bash,fish,zsh}/*
'';
meta = with lib; {