summary refs log blame commit diff
path: root/pkgs/tools/misc/tty-clock/default.nix
blob: b6cca5fe5c339820037d89db9df724385143588b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                         
                      
                  



                         

                                                                    
    
 
                                     

                            
                                  
 
                    
                                                     





                                             
{ lib, stdenv, fetchFromGitHub, ncurses, pkg-config }:

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

  src = fetchFromGitHub {
    owner = "xorg62";
    repo = "tty-clock";
    rev = "v${version}";
    sha256 = "16v3pmva13skpfjja96zacjpxrwzs1nb1iqmrp2qzvdbcm9061pp";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ ncurses ];

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

  meta = with lib; {
    homepage = "https://github.com/xorg62/tty-clock";
    license = licenses.free;
    description = "Digital clock in ncurses";
    platforms = platforms.all;
    maintainers = [ maintainers.koral ];
  };
}