Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / timewarrior / default.nix
blob640a367b8bb20e8adae4cf99b2b6714221ba614d
1 { lib, stdenv, fetchFromGitHub, cmake, asciidoctor, installShellFiles }:
3 stdenv.mkDerivation rec {
4   pname = "timewarrior";
5   version = "1.6.0";
7   src = fetchFromGitHub {
8     owner = "GothenburgBitFactory";
9     repo = "timewarrior";
10     rev = "v${version}";
11     sha256 = "sha256-0obIMnPBvMO30o+qXqwtINNRobBR6cFO65B/xjVt+2w=";
12     fetchSubmodules = true;
13   };
15   nativeBuildInputs = [ cmake asciidoctor installShellFiles ];
17   dontUseCmakeBuildDir = true;
19   postInstall = ''
20     installShellCompletion --cmd timew \
21       --bash completion/timew-completion.bash
22   '';
24   meta = with lib; {
25     description = "A command-line time tracker";
26     homepage = "https://timewarrior.net";
27     license = licenses.mit;
28     maintainers = with maintainers; [ matthiasbeyer mrVanDalo ];
29     mainProgram = "timew";
30     platforms = platforms.linux ++ platforms.darwin;
31   };