13 src = fetchFromGitHub {
16 rev = "refs/tags/v${version}";
17 hash = "sha256-B5o3oAey7zJg5JBf4GO69cLmVbnkKedkjWP108XRGR8=";
20 vendorHash = "sha256-P9J69WJ2C2xgdU9xydiaY8iSKB7ZfexLNYi7dyHDTIk=";
24 nativeBuildInputs = [ installShellFiles ];
26 subPackages = [ "cmd/task" ];
31 "-X=github.com/go-task/task/v3/internal/version.version=${version}"
37 ln -s $out/bin/task $out/bin/go-task
39 installShellCompletion completion/{bash,fish,zsh}/*
41 substituteInPlace $out/share/bash-completion/completions/task.bash \
42 --replace-fail 'complete -F _task task' 'complete -F _task task go-task'
43 substituteInPlace $out/share/fish/vendor_completions.d/task.fish \
44 --replace-fail 'complete -c $GO_TASK_PROGNAME' 'complete -c $GO_TASK_PROGNAME -c go-task'
45 substituteInPlace $out/share/zsh/site-functions/_task \
46 --replace-fail '#compdef task' '#compdef task go-task'
50 version = testers.testVersion {
56 homepage = "https://taskfile.dev/";
57 description = "Task runner / simpler Make alternative written in Go";
58 changelog = "https://github.com/go-task/task/blob/v${version}/CHANGELOG.md";
59 license = licenses.mit;
60 maintainers = with maintainers; [ parasrah ];