1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/applications/misc/taskwarrior/default.nix
2018-05-14 12:46:00 +02:00

33 lines
1.1 KiB
Nix

{ stdenv, fetchurl, cmake, libuuid, gnutls }:
stdenv.mkDerivation rec {
name = "taskwarrior-${version}";
version = "2.5.1";
src = fetchurl {
url = "https://taskwarrior.org/download/task-${version}.tar.gz";
sha256 = "059a9yc58wcicc6xxsjh1ph7k2yrag0spsahp1wqmsq6h7jwwyyq";
};
patches = [ ./0001-bash-completion-quote-pattern-argument-to-grep.patch ];
nativeBuildInputs = [ cmake libuuid gnutls ];
postInstall = ''
mkdir -p "$out/share/bash-completion/completions"
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 stdenv.lib; {
description = "Highly flexible command-line tool to manage TODO lists";
homepage = https://taskwarrior.org;
license = licenses.mit;
maintainers = with maintainers; [ marcweber jgeerds ];
platforms = platforms.linux ++ platforms.darwin;
};
}