lol
1{ stdenv, fetchFromGitHub, ncurses, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 name = "tty-clock-${version}";
5 version = "2.3";
6
7 src = fetchFromGitHub {
8 owner = "xorg62";
9 repo = "tty-clock";
10 rev = "v${version}";
11 sha256 = "16v3pmva13skpfjja96zacjpxrwzs1nb1iqmrp2qzvdbcm9061pp";
12 };
13
14 nativeBuildInputs = [ pkgconfig ];
15 buildInputs = [ ncurses ];
16
17 makeFlags = "PREFIX=$(out)";
18
19 meta = with stdenv.lib; {
20 homepage = https://github.com/xorg62/tty-clock;
21 license = licenses.free;
22 description = "Digital clock in ncurses";
23 platforms = platforms.all;
24 maintainers = [ maintainers.koral ];
25 };
26}