summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'overlays')
-rw-r--r--overlays/worktime/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/overlays/worktime/default.nix b/overlays/worktime/default.nix
index ab6fb40a..a8fe79c6 100644
--- a/overlays/worktime/default.nix
+++ b/overlays/worktime/default.nix
@@ -3,7 +3,7 @@ final: prev: {
3 name = "worktime"; 3 name = "worktime";
4 src = ./worktime.py; 4 src = ./worktime.py;
5 5
6 phases = [ "buildPhase" "installPhase" ]; 6 phases = [ "buildPhase" "checkPhase" "installPhase" ];
7 7
8 python = prev.python39.withPackages (ps: with ps; [pyxdg dateutil uritools requests configparser tabulate]); 8 python = prev.python39.withPackages (ps: with ps; [pyxdg dateutil uritools requests configparser tabulate]);
9 9
@@ -11,6 +11,11 @@ final: prev: {
11 substituteAll $src worktime 11 substituteAll $src worktime
12 ''; 12 '';
13 13
14 doCheck = true;
15 checkPhase = ''
16 ${python}/bin/python -m py_compile worktime
17 '';
18
14 installPhase = '' 19 installPhase = ''
15 install -m 0755 -D -t $out/bin \ 20 install -m 0755 -D -t $out/bin \
16 worktime 21 worktime