nixpkgs/pkgs/applications/misc/taskwarrior/default.nix

33 lines
1.1 KiB
Nix
Raw Normal View History

2014-10-26 01:08:00 +00:00
{ stdenv, fetchurl, cmake, libuuid, gnutls }:
stdenv.mkDerivation rec {
pname = "taskwarrior";
2016-02-25 14:49:37 +00:00
version = "2.5.1";
src = fetchurl {
url = "https://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
};
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
postInstall = ''
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"
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/"
'';
2015-06-22 07:25:07 +01:00
meta = with stdenv.lib; {
description = "Highly flexible command-line tool to manage TODO lists";
homepage = "https://taskwarrior.org";
2015-06-22 07:25:07 +01:00
license = licenses.mit;
maintainers = with maintainers; [ marcweber ];
2016-06-05 19:10:53 +01:00
platforms = platforms.linux ++ platforms.darwin;
};
}