nixpkgs/pkgs/development/tools/go-task/default.nix

35 lines
746 B
Nix
Raw Normal View History

2020-07-23 02:48:48 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-task";
2021-09-06 11:10:48 +02:00
version = "3.7.3";
2020-07-23 02:48:48 +02:00
src = fetchFromGitHub {
owner = pname;
repo = "task";
rev = "v${version}";
2021-09-06 11:10:48 +02:00
sha256 = "sha256-/NeOMLfYU37Ra7RG/vofq+45Thky6kfGDcgnQxVLVGo=";
2020-07-23 02:48:48 +02:00
};
2021-09-06 11:10:48 +02:00
vendorSha256 = "sha256-NU0Mgt8TJE/uE9/f2pFLRT0x6ZgCDbRcomlMFkA+juA=";
2020-07-23 02:48:48 +02:00
doCheck = false;
2020-07-23 02:48:48 +02:00
subPackages = [ "cmd/task" ];
2021-08-26 08:45:51 +02:00
ldflags = [
"-s" "-w" "-X main.version=${version}"
2020-07-23 02:48:48 +02:00
];
postInstall = ''
ln -s $out/bin/task $out/bin/go-task
2020-07-23 02:48:48 +02: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 ];
};
}