Commit 4d39c781 authored by zowoq's avatar zowoq
Browse files

go-task: install completion

parent 5d90841d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
{ 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; {