2020-12-07 12:04:23 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, libuuid, gnutls }:
|
2011-12-29 23:14:08 +01:00
|
|
|
|
2013-04-08 05:58:23 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "taskwarrior";
|
2020-12-07 12:04:23 +01:00
|
|
|
version = "2.5.2";
|
2011-12-29 23:14:08 +01:00
|
|
|
|
2020-12-07 12:04:23 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GothenburgBitFactory";
|
|
|
|
repo = "taskwarrior";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0jv5b56v75qhdqbrfsddfwizmbizcsv3mn8gp92nckwlx9hrk5id";
|
|
|
|
fetchSubmodules = true;
|
2012-06-22 14:51:41 +02:00
|
|
|
};
|
|
|
|
|
2014-10-26 02:08:00 +01:00
|
|
|
nativeBuildInputs = [ cmake libuuid gnutls ];
|
2012-06-22 14:51:41 +02:00
|
|
|
|
2015-01-18 14:13:53 +01:00
|
|
|
postInstall = ''
|
2017-06-01 18:39:16 +02:00
|
|
|
mkdir -p "$out/share/bash-completion/completions"
|
2018-01-10 20:51:59 +01:00
|
|
|
ln -s "../../doc/task/scripts/bash/task.sh" "$out/share/bash-completion/completions/task.bash"
|
2017-08-16 00:26:51 +02: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 12:46:00 +02:00
|
|
|
mkdir -p "$out/share/zsh/site-functions"
|
|
|
|
ln -s "../../../share/doc/task/scripts/zsh/_task" "$out/share/zsh/site-functions/"
|
2015-01-18 14:13:53 +01:00
|
|
|
'';
|
|
|
|
|
2015-06-22 08:25:07 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-02-08 11:44:46 +01:00
|
|
|
description = "Highly flexible command-line tool to manage TODO lists";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://taskwarrior.org";
|
2015-06-22 08:25:07 +02:00
|
|
|
license = licenses.mit;
|
2019-03-12 23:45:33 +01:00
|
|
|
maintainers = with maintainers; [ marcweber ];
|
2016-06-05 20:10:53 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2011-12-29 23:14:08 +01:00
|
|
|
};
|
|
|
|
}
|