3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/go-task/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
869 B
Nix
Raw Normal View History

2021-12-22 04:56:27 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2020-07-23 01:48:48 +01:00
buildGoModule rec {
pname = "go-task";
2022-04-01 21:25:02 +01:00
version = "3.12.0";
2020-07-23 01:48:48 +01:00
src = fetchFromGitHub {
owner = pname;
repo = "task";
rev = "v${version}";
2022-04-01 21:25:02 +01:00
sha256 = "sha256-FArt9w4nZJW/Kql3Y2rr/IVz+SnWCS2lzNMWF6TN0Bg=";
2020-07-23 01:48:48 +01:00
};
2022-04-01 21:25:02 +01:00
vendorSha256 = "sha256-73DtLYyq3sltzv4VtZMlZaSbP9zA9RZw2wgXVkzwrso=";
2020-07-23 01:48:48 +01:00
doCheck = false;
2021-12-22 04:56:27 +00:00
nativeBuildInputs = [ installShellFiles ];
2020-07-23 01:48:48 +01:00
subPackages = [ "cmd/task" ];
2021-08-26 07:45:51 +01:00
ldflags = [
"-s" "-w" "-X main.version=${version}"
2020-07-23 01:48:48 +01:00
];
postInstall = ''
ln -s $out/bin/task $out/bin/go-task
2021-12-22 04:56:27 +00:00
installShellCompletion completion/{bash,fish,zsh}/*
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 ];
};
}