taskwarrior: install zsh completion (#40454)

This commit is contained in:
Johannes Frankenau 2018-05-14 10:46:00 +00:00 committed by xeji
parent 4c7d07c85c
commit d71cde3198

View File

@ -4,10 +4,8 @@ stdenv.mkDerivation rec {
name = "taskwarrior-${version}";
version = "2.5.1";
enableParallelBuilding = true;
src = fetchurl {
url = "http://www.taskwarrior.org/download/task-${version}.tar.gz";
url = "https://taskwarrior.org/download/task-${version}.tar.gz";
sha256 = "059a9yc58wcicc6xxsjh1ph7k2yrag0spsahp1wqmsq6h7jwwyyq";
};
@ -20,11 +18,13 @@ stdenv.mkDerivation rec {
ln -s "../../doc/task/scripts/bash/task.sh" "$out/share/bash-completion/completions/task.bash"
mkdir -p "$out/share/fish/vendor_completions.d"
ln -s "../../../share/doc/task/scripts/fish/task.fish" "$out/share/fish/vendor_completions.d/"
mkdir -p "$out/share/zsh/site-functions"
ln -s "../../../share/doc/task/scripts/zsh/_task" "$out/share/zsh/site-functions/"
'';
meta = with stdenv.lib; {
description = "Highly flexible command-line tool to manage TODO lists";
homepage = http://taskwarrior.org;
homepage = https://taskwarrior.org;
license = licenses.mit;
maintainers = with maintainers; [ marcweber jgeerds ];
platforms = platforms.linux ++ platforms.darwin;