2014-10-26 01:08:00 +00:00
|
|
|
{ stdenv, fetchurl, cmake, libuuid, gnutls }:
|
2011-12-29 22:14:08 +00:00
|
|
|
|
2013-04-08 04:58:23 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "taskwarrior-${version}";
|
2016-02-25 14:49:37 +00:00
|
|
|
version = "2.5.1";
|
2011-12-29 22:14:08 +00:00
|
|
|
|
2012-10-11 07:50:53 +01:00
|
|
|
enableParallelBuilding = true;
|
2012-06-22 13:51:41 +01:00
|
|
|
|
2012-10-11 07:50:53 +01:00
|
|
|
src = fetchurl {
|
2013-04-08 04:58:23 +01:00
|
|
|
url = "http://www.taskwarrior.org/download/task-${version}.tar.gz";
|
2016-02-25 14:49:37 +00:00
|
|
|
sha256 = "059a9yc58wcicc6xxsjh1ph7k2yrag0spsahp1wqmsq6h7jwwyyq";
|
2012-06-22 13:51:41 +01: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 13:51:41 +01:00
|
|
|
|
2015-01-18 13:13:53 +00:00
|
|
|
postInstall = ''
|
2017-06-01 17:39:16 +01:00
|
|
|
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/"
|
2015-01-18 13:13:53 +00:00
|
|
|
'';
|
|
|
|
|
2015-06-22 07:25:07 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-02-08 10:44:46 +00:00
|
|
|
description = "Highly flexible command-line tool to manage TODO lists";
|
2012-10-11 07:50:53 +01:00
|
|
|
homepage = http://taskwarrior.org;
|
2015-06-22 07:25:07 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ marcweber jgeerds ];
|
2016-06-05 19:10:53 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2011-12-29 22:14:08 +00:00
|
|
|
};
|
|
|
|
}
|