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

35 lines
759 B
Nix
Raw Normal View History

2020-07-23 01:48:48 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-task";
2021-04-26 01:23:21 +01:00
version = "3.4.2";
2020-07-23 01:48:48 +01:00
src = fetchFromGitHub {
owner = pname;
repo = "task";
rev = "v${version}";
2021-04-26 01:23:21 +01:00
sha256 = "sha256-632ISkBIZJBJpybuiuRHOV3CAJg1rSe3hK+W7hmW2cM=";
2020-07-23 01:48:48 +01:00
};
2021-04-18 00:12:33 +01:00
vendorSha256 = "sha256-qKjCGZnCts4GfBafSRXR7xTvfJdqK8zjpu01eiyITkU=";
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 = ''
ln -s $out/bin/task $out/bin/go-task
2020-07-23 01:48:48 +01: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 ];
};
}