From 3cc639da822aaabef1942bb6ba65ded4f6c5d27f Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 31 Dec 2023 12:52:49 +0100 Subject: fix(hm/conf/task/hooks/): Correctly wrap python hooks to add timewarrior --- hm/soispha/conf/taskwarrior/hooks/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hm') diff --git a/hm/soispha/conf/taskwarrior/hooks/default.nix b/hm/soispha/conf/taskwarrior/hooks/default.nix index 429db108..a01b1c17 100644 --- a/hm/soispha/conf/taskwarrior/hooks/default.nix +++ b/hm/soispha/conf/taskwarrior/hooks/default.nix @@ -54,8 +54,8 @@ ])) ]; dontUnpack = true; - installPhase = "install -Dm755 ${./scripts/on-modify_track-timewarrior.py} $out/bin/bin"; - postInstall = '' + installPhase = '' + install -Dm755 ${./scripts/on-modify_track-timewarrior.py} $out/bin/bin wrapProgram $out/bin/bin \ --prefix PATH : ${lib.makeBinPath [pkgs.taskwarrior pkgs.timewarrior]} ''; @@ -73,8 +73,8 @@ ])) ]; dontUnpack = true; - installPhase = "install -Dm755 ${./scripts/on-modify_track-total-active-time.py} $out/bin/bin"; - postInstall = '' + installPhase = '' + install -Dm755 ${./scripts/on-modify_track-total-active-time.py} $out/bin/bin wrapProgram $out/bin/bin \ --prefix PATH : ${lib.makeBinPath [pkgs.taskwarrior]} ''; -- cgit 1.4.1