hyprpaper: 0.7.3 -> 0.7.4 (#376464)
[NixPkgs.git] / pkgs / by-name / ti / timewarrior / package.nix
blob054a32860248b307653f0c83e7d5bc1387b91470
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   asciidoctor,
7   installShellFiles,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "timewarrior";
12   version = "1.7.1";
14   src = fetchFromGitHub {
15     owner = "GothenburgBitFactory";
16     repo = "timewarrior";
17     rev = "v${version}";
18     hash = "sha256-sc4AfdXLuA9evoGU6Z97+Hq7zj9nx093+nPALRkhziQ=";
19     fetchSubmodules = true;
20   };
22   nativeBuildInputs = [
23     cmake
24     asciidoctor
25     installShellFiles
26   ];
28   dontUseCmakeBuildDir = true;
30   postInstall = ''
31     installShellCompletion --cmd timew \
32       --bash completion/timew-completion.bash
33   '';
35   meta = with lib; {
36     description = "Command-line time tracker";
37     homepage = "https://timewarrior.net";
38     license = licenses.mit;
39     maintainers = with maintainers; [
40       matthiasbeyer
41       mrVanDalo
42     ];
43     mainProgram = "timew";
44     platforms = platforms.linux ++ platforms.darwin;
45   };