depot/third_party/nixpkgs/pkgs/applications/misc/timewarrior/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

33 lines
864 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, asciidoctor, installShellFiles }:
stdenv.mkDerivation rec {
pname = "timewarrior";
version = "1.7.0";
src = fetchFromGitHub {
owner = "GothenburgBitFactory";
repo = "timewarrior";
rev = "v${version}";
sha256 = "sha256-6s/fifjGCkk8JiADPbeiqsKMgY0fkIJBqRPco+rmP1A=";
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;
};
}