83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
39 lines
956 B
Nix
39 lines
956 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-task";
|
|
version = "3.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "task";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-SmO59VXuQZISDNJy2d6qhQv1QCxm0WodqPx2qHhCs80=";
|
|
};
|
|
|
|
vendorHash = "sha256-TsFPpN/X5pO4KALbqsHCa6YxYtaXMVqB5ENaIEfTWRo=";
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
subPackages = [ "cmd/task" ];
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-X main.version=${version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/task $out/bin/go-task
|
|
|
|
installShellCompletion completion/{bash,fish,zsh}/*
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://taskfile.dev/";
|
|
description = "A task runner / simpler Make alternative written in Go";
|
|
changelog = "https://github.com/go-task/task/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ parasrah ];
|
|
};
|
|
}
|