nixpkgs/pkgs/by-name/ti/timewarrior/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
860 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, asciidoctor, installShellFiles }:
2016-04-01 07:46:48 +00:00
stdenv.mkDerivation rec {
pname = "timewarrior";
2024-01-21 21:34:52 +00:00
version = "1.7.1";
2016-04-01 07:46:48 +00:00
src = fetchFromGitHub {
owner = "GothenburgBitFactory";
repo = "timewarrior";
rev = "v${version}";
hash = "sha256-sc4AfdXLuA9evoGU6Z97+Hq7zj9nx093+nPALRkhziQ=";
fetchSubmodules = true;
2016-04-01 07:46:48 +00:00
};
nativeBuildInputs = [ cmake asciidoctor installShellFiles ];
2021-06-09 13:08:52 +00:00
dontUseCmakeBuildDir = true;
2016-04-01 07:46:48 +00:00
postInstall = ''
installShellCompletion --cmd timew \
--bash completion/timew-completion.bash
'';
meta = with lib; {
2016-04-01 07:46:48 +00:00
description = "Command-line time tracker";
homepage = "https://timewarrior.net";
2016-04-01 07:46:48 +00:00
license = licenses.mit;
maintainers = with maintainers; [ matthiasbeyer mrVanDalo ];
mainProgram = "timew";
2018-03-13 16:30:51 +00:00
platforms = platforms.linux ++ platforms.darwin;
2016-04-01 07:46:48 +00:00
};
}