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

35 lines
758 B
Nix
Raw Normal View History

2020-07-23 01:48:48 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-task";
2021-03-09 17:02:51 +00:00
version = "3.2.2";
2020-07-23 01:48:48 +01:00
src = fetchFromGitHub {
owner = pname;
repo = "task";
rev = "v${version}";
2021-03-09 17:02:51 +00:00
sha256 = "0x94z023rsl7h9prw0i4zkwb5xf2frjz8f15mmcknw48r9ymw598";
2020-07-23 01:48:48 +01:00
};
2021-03-09 17:02:51 +00:00
vendorSha256 = "05sh4jbva23ggg2viknl49bwgkhf8dfvsv3rqkl4wwi9ag64qgha";
2020-07-23 01:48:48 +01:00
doCheck = false;
2020-07-23 01:48:48 +01:00
subPackages = [ "cmd/task" ];
buildFlagsArray = [
"-ldflags=-s -w -X main.version=${version}"
];
postInstall = ''
mv $out/bin/task $out/bin/go-task
'';
meta = with lib; {
homepage = "https://taskfile.dev/";
description = "A task runner / simpler Make alternative written in Go";
license = licenses.mit;
maintainers = with maintainers; [ parasrah ];
};
}