2020-08-20 17:08:02 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-task";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "3.6.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "task";
|
|
|
|
rev = "v${version}";
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-3DTjxcMxgaTMunctHaCgOX5/P85lJDRin6RpMuv9Rfg=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
vendorSha256 = "sha256-bsVzV2M31BA7X6aq8na7v56uGYgne4OwR5kz/utmQHI=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
subPackages = [ "cmd/task" ];
|
|
|
|
|
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=-s -w -X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2021-03-20 04:20:00 +00:00
|
|
|
ln -s $out/bin/task $out/bin/go-task
|
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 ];
|
|
|
|
};
|
|
|
|
}
|