diff options
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/tty-clock/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/misc/tty-clock/default.nix b/pkgs/tools/misc/tty-clock/default.nix new file mode 100644 index 000000000000..eb1a861db928 --- /dev/null +++ b/pkgs/tools/misc/tty-clock/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, ncurses }: + +stdenv.mkDerivation rec { + name = "tty-clock-${version}"; + version = "0.1"; + + src = fetchFromGitHub { + owner = "xorg62"; + repo = "tty-clock"; + rev = "v0.1"; + sha256 = "14h70ky5y9nb3mzhlshdgq5n47hg3g6msnwbqd7nnmjzrw1nmarl"; + }; + + buildInputs = [ ncurses ]; + + preInstall = '' + sed -i 's@/usr/local/@$(out)/@' Makefile + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/xorg62/tty-clock; + license = licenses.free; + description = "Digital clock in ncurses"; + platforms = platforms.all; + maintainers = [ maintainers.koral ]; + }; +} |