mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 05:43:17 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
34 lines
862 B
Nix
34 lines
862 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 = "Command-line time tracker";
|
|
homepage = "https://timewarrior.net";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ matthiasbeyer mrVanDalo ];
|
|
mainProgram = "timew";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|
|
|