2023-06-12 13:57:46 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, asciidoctor, installShellFiles }:
|
2016-04-01 07:46:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "timewarrior";
|
2024-01-21 21:34:52 +00:00
|
|
|
version = "1.7.1";
|
2016-04-01 07:46:48 +00:00
|
|
|
|
2019-11-24 13:42:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GothenburgBitFactory";
|
|
|
|
repo = "timewarrior";
|
|
|
|
rev = "v${version}";
|
2024-07-14 10:59:26 +00:00
|
|
|
hash = "sha256-sc4AfdXLuA9evoGU6Z97+Hq7zj9nx093+nPALRkhziQ=";
|
2019-11-24 13:42:09 +00:00
|
|
|
fetchSubmodules = true;
|
2016-04-01 07:46:48 +00:00
|
|
|
};
|
|
|
|
|
2023-06-12 13:57:46 +00:00
|
|
|
nativeBuildInputs = [ cmake asciidoctor installShellFiles ];
|
2021-06-09 13:08:52 +00:00
|
|
|
|
|
|
|
dontUseCmakeBuildDir = true;
|
2016-04-01 07:46:48 +00:00
|
|
|
|
2023-06-12 13:57:46 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd timew \
|
|
|
|
--bash completion/timew-completion.bash
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-04-01 07:46:48 +00:00
|
|
|
description = "Command-line time tracker";
|
2020-03-03 08:50:50 +00:00
|
|
|
homepage = "https://timewarrior.net";
|
2016-04-01 07:46:48 +00:00
|
|
|
license = licenses.mit;
|
2019-02-20 18:52:48 +00:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer mrVanDalo ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "timew";
|
2018-03-13 16:30:51 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-04-01 07:46:48 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|