diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 21:52:24 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-04 21:52:24 +0200 |
commit | 09d82350943286abc4a0b66c84287eb30a4b6f43 (patch) | |
tree | 9a823767b6fd5d073934a5627190755ff88b4c2c /overlays | |
parent | 2a7280335e2d290ea96c795dbb5bbc12cdd8061b (diff) | |
download | nixos-09d82350943286abc4a0b66c84287eb30a4b6f43.tar nixos-09d82350943286abc4a0b66c84287eb30a4b6f43.tar.gz nixos-09d82350943286abc4a0b66c84287eb30a4b6f43.tar.bz2 nixos-09d82350943286abc4a0b66c84287eb30a4b6f43.tar.xz nixos-09d82350943286abc4a0b66c84287eb30a4b6f43.zip |
feeds: imm-notmuch-insert
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/worktime/default.nix | 7 |
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 |