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";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.24.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "task";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-8YkhdMJJ4EgFqkBOSudpznEKRe9bsd/yR2NuvJcrfgY=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = "sha256-iHze5mcXDmOyTxqQX5/HtElDY0Af3bTbB6xLrZjVHPY=";
|
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";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/go-task/task/blob/v${version}/CHANGELOG.md";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ parasrah ];
|
|
|
|
};
|
|
|
|
}
|