2014-10-26 01:08:00 +00:00
|
|
|
{ stdenv, fetchurl, cmake, libuuid, gnutls }:
|
2011-12-29 22:14:08 +00:00
|
|
|
|
2013-04-08 03:58:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "taskwarrior";
|
2016-02-25 14:49:37 +00:00
|
|
|
version = "2.5.1";
|
2011-12-29 22:14:08 +00:00
|
|
|
|
2012-10-11 06:50:53 +00:00
|
|
|
src = fetchurl {
|
2018-05-14 10:46:00 +00:00
|
|
|
url = "https://taskwarrior.org/download/task-${version}.tar.gz";
|
2016-02-25 14:49:37 +00:00
|
|
|
sha256 = "059a9yc58wcicc6xxsjh1ph7k2yrag0spsahp1wqmsq6h7jwwyyq";
|
2012-06-22 12:51:41 +00:00
|
|
|
};
|
|
|
|
|
2017-02-08 10:44:13 +00:00
|
|
|
patches = [ ./0001-bash-completion-quote-pattern-argument-to-grep.patch ];
|
|
|
|
|
2014-10-26 01:08:00 +00:00
|
|
|
nativeBuildInputs = [ cmake libuuid gnutls ];
|
2012-06-22 12:51:41 +00:00
|
|
|
|
2015-01-18 13:13:53 +00:00
|
|
|
postInstall = ''
|
2017-06-01 16:39:16 +00:00
|
|
|
mkdir -p "$out/share/bash-completion/completions"
|
2018-01-10 19:51:59 +00:00
|
|
|
ln -s "../../doc/task/scripts/bash/task.sh" "$out/share/bash-completion/completions/task.bash"
|
2017-08-15 22:26:51 +00:00
|
|
|
mkdir -p "$out/share/fish/vendor_completions.d"
|
|
|
|
ln -s "../../../share/doc/task/scripts/fish/task.fish" "$out/share/fish/vendor_completions.d/"
|
2018-05-14 10:46:00 +00:00
|
|
|
mkdir -p "$out/share/zsh/site-functions"
|
|
|
|
ln -s "../../../share/doc/task/scripts/zsh/_task" "$out/share/zsh/site-functions/"
|
2015-01-18 13:13:53 +00:00
|
|
|
'';
|
|
|
|
|
2015-06-22 06:25:07 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-02-08 10:44:46 +00:00
|
|
|
description = "Highly flexible command-line tool to manage TODO lists";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://taskwarrior.org";
|
2015-06-22 06:25:07 +00:00
|
|
|
license = licenses.mit;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ marcweber ];
|
2016-06-05 18:10:53 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2011-12-29 22:14:08 +00:00
|
|
|
};
|
|
|
|
}
|