lol
1{ stdenv, fetchFromGitHub, ncurses }:
2
3stdenv.mkDerivation rec {
4 name = "tty-clock-${version}";
5 version = "0.1";
6
7 src = fetchFromGitHub {
8 owner = "xorg62";
9 repo = "tty-clock";
10 rev = "v0.1";
11 sha256 = "14h70ky5y9nb3mzhlshdgq5n47hg3g6msnwbqd7nnmjzrw1nmarl";
12 };
13
14 buildInputs = [ ncurses ];
15
16 preInstall = ''
17 sed -i 's@/usr/local/@$(out)/@' Makefile
18 '';
19
20 meta = with stdenv.lib; {
21 homepage = https://github.com/xorg62/tty-clock;
22 license = licenses.free;
23 description = "Digital clock in ncurses";
24 platforms = platforms.all;
25 maintainers = [ maintainers.koral ];
26 };
27}