about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/tty-clock/default.nix
blob: f6a312f0460873ca8e71c57e02790aaa0d0da624 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchFromGitHub, ncurses, pkgconfig }:

stdenv.mkDerivation rec {
  pname = "tty-clock";
  version = "2.3";

  src = fetchFromGitHub {
    owner = "xorg62";
    repo = "tty-clock";
    rev = "v${version}";
    sha256 = "16v3pmva13skpfjja96zacjpxrwzs1nb1iqmrp2qzvdbcm9061pp";
  };
  
  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ ncurses ];

  makeFlags = [ "PREFIX=$(out)" ];

  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 ];
  };
}