nixpkgs/pkgs/applications/misc/taskwarrior/default.nix
Peter Simons bd8ae7359b taskwarrior: install bash completion for fish
And also modernize the location of the bash completion file.
2017-06-01 18:44:06 +02:00

32 lines
1 KiB
Nix

{ stdenv, fetchurl, cmake, libuuid, gnutls }:
stdenv.mkDerivation rec {
name = "taskwarrior-${version}";
version = "2.5.1";
enableParallelBuilding = true;
src = fetchurl {
url = "http://www.taskwarrior.org/download/task-${version}.tar.gz";
sha256 = "059a9yc58wcicc6xxsjh1ph7k2yrag0spsahp1wqmsq6h7jwwyyq";
};
patches = [ ./0001-bash-completion-quote-pattern-argument-to-grep.patch ];
nativeBuildInputs = [ cmake libuuid gnutls ];
postInstall = ''
mkdir -p "$out/share/bash-completion/completions"
ln -s "../../doc/task/scripts/bash/task.sh" "$out/share/bash-completion/completions/"
mkdir -p "$out/etc/fish/completions"
ln -s "../../../share/doc/task/scripts/fish/task.fish" "$out/etc/fish/completions/"
'';
meta = with stdenv.lib; {
description = "Highly flexible command-line tool to manage TODO lists";
homepage = http://taskwarrior.org;
license = licenses.mit;
maintainers = with maintainers; [ marcweber jgeerds ];
platforms = platforms.linux ++ platforms.darwin;
};
}