2017-03-03 22:16:45 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses, pkgconfig }:
|
2014-09-28 11:31:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "tty-clock-${version}";
|
2017-03-03 22:16:45 +00:00
|
|
|
version = "2.3";
|
2014-09-28 11:31:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xorg62";
|
|
|
|
repo = "tty-clock";
|
2017-03-03 22:16:45 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "16v3pmva13skpfjja96zacjpxrwzs1nb1iqmrp2qzvdbcm9061pp";
|
2014-09-28 11:31:50 +01:00
|
|
|
};
|
2017-03-03 22:16:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-09-28 11:31:50 +01:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2017-03-03 22:16:45 +00:00
|
|
|
makeFlags = "PREFIX=$(out)";
|
2014-09-28 11:31:50 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|