14 src = fetchFromGitHub {
17 rev = "refs/tags/v${version}";
18 hash = "sha256-jQKPTKEzTfzqPlNlKFMduaAhvDsogRv3vCGtZ4KP/O4=";
21 vendorHash = "sha256-bw9NaJOMMKcKth0hRqNq8mqib/5zLpjComo0oj22A/U=";
25 nativeBuildInputs = [ installShellFiles ];
27 subPackages = [ "cmd/task" ];
32 "-X=github.com/go-task/task/v3/internal/version.version=${version}"
38 ln -s $out/bin/task $out/bin/go-task
40 installShellCompletion completion/{bash,fish,zsh}/*
42 substituteInPlace $out/share/bash-completion/completions/task.bash \
43 --replace-fail 'complete -F _task task' 'complete -F _task task go-task'
44 substituteInPlace $out/share/fish/vendor_completions.d/task.fish \
45 --replace-fail 'complete -c $GO_TASK_PROGNAME' 'complete -c $GO_TASK_PROGNAME -c go-task'
46 substituteInPlace $out/share/zsh/site-functions/_task \
47 --replace-fail '#compdef task' '#compdef task go-task'
52 version = testers.testVersion {
57 updateScript = nix-update-script { };
61 homepage = "https://taskfile.dev/";
62 description = "Task runner / simpler Make alternative written in Go";
63 changelog = "https://github.com/go-task/task/blob/v${version}/CHANGELOG.md";
64 license = licenses.mit;
65 maintainers = with maintainers; [ parasrah ];