diff options
-rw-r--r-- | hm/soispha/conf/taskwarrior/hooks/default.nix | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/hm/soispha/conf/taskwarrior/hooks/default.nix b/hm/soispha/conf/taskwarrior/hooks/default.nix index a8ce09cc..429db108 100644 --- a/hm/soispha/conf/taskwarrior/hooks/default.nix +++ b/hm/soispha/conf/taskwarrior/hooks/default.nix @@ -42,7 +42,10 @@ }; track_timewarrior = pkgs.stdenv.mkDerivation { name = "track_timewarrior.taskwarrior-hook"; - propagatedBuildInputs = [ + nativeBuildInputs = [ + pkgs.makeWrapper + ]; + buildInputs = [ pkgs.timewarrior pkgs.taskwarrior (pkgs.python3.withPackages (pythonPackages: @@ -52,10 +55,17 @@ ]; dontUnpack = true; installPhase = "install -Dm755 ${./scripts/on-modify_track-timewarrior.py} $out/bin/bin"; + postInstall = '' + wrapProgram $out/bin/bin \ + --prefix PATH : ${lib.makeBinPath [pkgs.taskwarrior pkgs.timewarrior]} + ''; }; track_total_active_time = pkgs.stdenv.mkDerivation { name = "track_total_active_time.taskwarrior-hook"; - propagatedBuildInputs = [ + nativeBuildInputs = [ + pkgs.makeWrapper + ]; + buildInputs = [ pkgs.taskwarrior (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [ @@ -64,6 +74,10 @@ ]; dontUnpack = true; installPhase = "install -Dm755 ${./scripts/on-modify_track-total-active-time.py} $out/bin/bin"; + postInstall = '' + wrapProgram $out/bin/bin \ + --prefix PATH : ${lib.makeBinPath [pkgs.taskwarrior]} + ''; }; mkSyncGitRepo = type: { |