13 stdenv.mkDerivation rec {
14 pname = "taskwarrior";
17 src = fetchFromGitHub {
18 owner = "GothenburgBitFactory";
21 hash = "sha256-0YveqiylXJi4cdDCfnPtwCVOJbQrZYsxnXES+9B4Yfw=";
22 fetchSubmodules = true;
26 substituteInPlace src/commands/CmdNews.cpp \
27 --replace "xdg-open" "${lib.getBin xdg-utils}/bin/xdg-open"
40 patchShebangs --build test
45 # ZSH is installed automatically from some reason, only bash and fish need
47 installShellCompletion --cmd task \
48 --bash $out/share/doc/task/scripts/bash/task.sh \
49 --fish $out/share/doc/task/scripts/fish/task.fish
50 rm -r $out/share/doc/task/scripts/bash
51 rm -r $out/share/doc/task/scripts/fish
52 # Install vim and neovim plugin
53 mkdir -p $out/share/vim-plugins
54 mv $out/share/doc/task/scripts/vim $out/share/vim-plugins/task
55 mkdir -p $out/share/nvim
56 ln -s $out/share/vim-plugins/task $out/share/nvim/site
60 description = "Highly flexible command-line tool to manage TODO lists";
61 homepage = "https://taskwarrior.org";
62 license = licenses.mit;
63 maintainers = with maintainers; [
68 platforms = platforms.unix;