3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/taskwarrior/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2021-10-03 11:23:38 +01:00
{ lib, stdenv, fetchFromGitHub, cmake, libuuid, gnutls, python3, xdg-utils }:
stdenv.mkDerivation rec {
pname = "taskwarrior";
2021-10-24 01:57:18 +01:00
version = "2.6.1";
2021-10-03 11:23:38 +01:00
src = fetchFromGitHub {
owner = "GothenburgBitFactory";
repo = "taskwarrior";
rev = "v${version}";
2021-10-24 01:57:18 +01:00
sha256 = "sha256-jMZzo2cegoapEHTvfD6ThU1IsXru3iOcpyDbZxkSXzQ=";
2021-10-03 11:23:38 +01:00
fetchSubmodules = true;
};
2021-03-03 19:22:20 +00:00
2021-10-03 11:23:38 +01:00
postPatch = ''
substituteInPlace src/commands/CmdNews.cpp \
--replace "xdg-open" "${lib.getBin xdg-utils}/bin/xdg-open"
2021-03-03 19:22:20 +00:00
'';
2012-06-22 13:51:41 +01:00
2021-10-03 11:23:38 +01:00
nativeBuildInputs = [ cmake libuuid gnutls python3 ];
2012-06-22 13:51:41 +01:00
2021-03-03 19:22:20 +00:00
doCheck = true;
preCheck = ''
2021-10-03 11:23:38 +01:00
patchShebangs --build test
2021-03-03 19:22:20 +00:00
'';
checkTarget = "test";
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/"
'';
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;
2021-10-03 11:23:38 +01:00
maintainers = with maintainers; [ marcweber oxalica ];
2021-03-03 19:22:20 +00:00
platforms = platforms.unix;
};
}