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

34 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, libuuid, gnutls }:
stdenv.mkDerivation rec {
pname = "taskwarrior";
2020-12-07 11:04:23 +00:00
version = "2.5.2";
2020-12-07 11:04:23 +00:00
src = fetchFromGitHub {
owner = "GothenburgBitFactory";
repo = "taskwarrior";
rev = "v${version}";
sha256 = "0jv5b56v75qhdqbrfsddfwizmbizcsv3mn8gp92nckwlx9hrk5id";
fetchSubmodules = true;
2012-06-22 13:51:41 +01:00
};
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/"
'';
meta = with 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;
};
}