depot/third_party/nixpkgs/pkgs/development/tools/go-task/default.nix
Default email bfd56a1002 Project import generated by Copybara.
GitOrigin-RevId: 0a5f5bab0e08e968ef25cff393312aa51a3512cf
2021-04-19 05:05:28 +02:00

34 lines
759 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-task";
version = "3.4.1";
src = fetchFromGitHub {
owner = pname;
repo = "task";
rev = "v${version}";
sha256 = "sha256-r0AHGgv2huMaZfsbK7o4KKJirNeOff1M3jgG8ZUJoiA=";
};
vendorSha256 = "sha256-qKjCGZnCts4GfBafSRXR7xTvfJdqK8zjpu01eiyITkU=";
doCheck = false;
subPackages = [ "cmd/task" ];
buildFlagsArray = [
"-ldflags=-s -w -X main.version=${version}"
];
postInstall = ''
ln -s $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 ];
};
}