Merge pull request #237359 from joshuachp/feature-timew-completion

timewarrior: install bash completion
This commit is contained in:
Emily
2023-06-13 15:16:57 +02:00
committed by GitHub
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, asciidoctor }:
{ lib, stdenv, fetchFromGitHub, cmake, asciidoctor, installShellFiles }:
stdenv.mkDerivation rec {
pname = "timewarrior";
@@ -12,10 +12,15 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake asciidoctor ];
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";