2021-12-30 13:39:12 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-task";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "3.14.1";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "task";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-GbCrMsMxhSjJOsZX4Gq9ZzBJ+F5vXDMi9vSyFrHNt44=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
vendorSha256 = "sha256-xp1s1aixPyXq9oVD8IZYSlUiL8UkIx5c8gYJRpIRD7I=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
subPackages = [ "cmd/task" ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X main.version=${version}"
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2021-03-20 04:20:00 +00:00
|
|
|
ln -s $out/bin/task $out/bin/go-task
|
2021-12-30 13:39:12 +00:00
|
|
|
|
|
|
|
installShellCompletion completion/{bash,fish,zsh}/*
|
2020-08-20 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://taskfile.dev/";
|
|
|
|
description = "A task runner / simpler Make alternative written in Go";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ parasrah ];
|
|
|
|
};
|
|
|
|
}
|