From 392e6768f9f60c761b65f8774c1667ab8d00f230 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 3 Jan 2021 01:14:47 +0100 Subject: gkleen@sif: systemd --- overlays/worktime/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 overlays/worktime/default.nix (limited to 'overlays/worktime/default.nix') diff --git a/overlays/worktime/default.nix b/overlays/worktime/default.nix new file mode 100644 index 00000000..26e1dfed --- /dev/null +++ b/overlays/worktime/default.nix @@ -0,0 +1,19 @@ +final: prev: { + worktime = prev.stdenv.mkDerivation rec { + name = "worktime"; + src = ./worktime.py; + + phases = [ "buildPhase" "installPhase" ]; + + python = prev.python37.withPackages (ps: with ps; [pyxdg dateutil uritools requests configparser]); + + buildPhase = '' + substituteAll $src worktime + ''; + + installPhase = '' + install -m 0755 -D -t $out/bin \ + worktime + ''; + }; +} -- cgit v1.2.3