1{ lib, stdenv, fetchFromGitHub, cmake, asciidoctor }:
2
3stdenv.mkDerivation rec {
4 pname = "timewarrior";
5 version = "1.5.0";
6
7 src = fetchFromGitHub {
8 owner = "GothenburgBitFactory";
9 repo = "timewarrior";
10 rev = "v${version}";
11 sha256 = "sha256-qD49NExR0OZ6hgt5ejGiltxF9xkmseJjhJNzEGofnhw=";
12 fetchSubmodules = true;
13 };
14
15 nativeBuildInputs = [ cmake asciidoctor ];
16
17 dontUseCmakeBuildDir = true;
18
19 meta = with lib; {
20 description = "A command-line time tracker";
21 homepage = "https://timewarrior.net";
22 license = licenses.mit;
23 maintainers = with maintainers; [ matthiasbeyer mrVanDalo ];
24 mainProgram = "timew";
25 platforms = platforms.linux ++ platforms.darwin;
26 };
27}
28