blob: ddab8b2cd22d43fd962adcfbcb6b0562bea4f952 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ stdenv
, python37
}:
stdenv.mkDerivation rec {
pname = "worktime";
version = "3";
src = ../worktime.py;
phases = [ "buildPhase" "installPhase" ];
python = python37.withPackages (ps: with ps; [pyxdg dateutil uritools requests configparser]);
buildPhase = ''
substituteAll $src worktime
'';
installPhase = ''
install -m 0755 -D -t $out/bin \
worktime
'';
}
|