Merge pull request #93619 from Parasrah/go-task

go-task: init at 2.8.1
This commit is contained in:
Daniël de Kok 2020-07-25 20:41:26 +02:00 committed by GitHub
commit 370a71c74f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 0 deletions

View file

@ -6160,6 +6160,12 @@
githubId = 20792;
name = "Sebastian Galkin";
};
parasrah = {
email = "nixos@parasrah.com";
github = "parasrah";
githubId = 14935550;
name = "Brad Pfannmuller";
};
pashashocky = {
email = "pashashocky@gmail.com";
github = "pashashocky";

View file

@ -0,0 +1,33 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-task";
version = "2.8.1";
src = fetchFromGitHub {
owner = pname;
repo = "task";
rev = "v${version}";
sha256 = "1yf5s22q4hsxvgzrj4k6gbbq0whl5b9j12mbwimxaf53q535wy4q";
};
vendorSha256 = null;
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;
platforms = platforms.all;
maintainers = with maintainers; [ parasrah ];
};
}

View file

@ -17724,6 +17724,8 @@ in
gotags = callPackage ../development/tools/gotags { };
go-task = callPackage ../development/tools/go-task { };
golint = callPackage ../development/tools/golint { };
golangci-lint = callPackage ../development/tools/golangci-lint { };