biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / timewarrior / default.nix
blobf0cca927f753d7d6665b36cf6a1593c6aedd2231
1 { lib, stdenv, fetchFromGitHub, cmake, asciidoctor, installShellFiles }:
3 stdenv.mkDerivation rec {
4   pname = "timewarrior";
5   version = "1.7.1";
7   src = fetchFromGitHub {
8     owner = "GothenburgBitFactory";
9     repo = "timewarrior";
10     rev = "v${version}";
11     hash = "sha256-sc4AfdXLuA9evoGU6Z97+Hq7zj9nx093+nPALRkhziQ=";
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 = "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   };