depot/third_party/nixpkgs/pkgs/applications/misc/timewarrior/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

33 lines
864 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, asciidoctor, installShellFiles }:
stdenv.mkDerivation rec {
pname = "timewarrior";
version = "1.7.1";
src = fetchFromGitHub {
owner = "GothenburgBitFactory";
repo = "timewarrior";
rev = "v${version}";
sha256 = "sha256-sc4AfdXLuA9evoGU6Z97+Hq7zj9nx093+nPALRkhziQ=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake asciidoctor installShellFiles ];
dontUseCmakeBuildDir = true;
postInstall = ''
installShellCompletion --cmd timew \
--bash completion/timew-completion.bash
'';
meta = with lib; {
description = "A command-line time tracker";
homepage = "https://timewarrior.net";
license = licenses.mit;
maintainers = with maintainers; [ matthiasbeyer mrVanDalo ];
mainProgram = "timew";
platforms = platforms.linux ++ platforms.darwin;
};
}