1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/go-task/default.nix

35 lines
708 B
Nix
Raw Normal View History

2020-07-23 01:48:48 +01:00
{ 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;
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 ];
};
}