Skip to content

Commit

Permalink
go-task: init at 2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Parasrah authored and danieldk committed Jul 25, 2020
1 parent 60bca58 commit 669155b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/development/tools/go-task/default.nix
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -17679,6 +17679,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 { };
Expand Down

0 comments on commit 669155b

Please sign in to comment.