2021-11-13 21:05:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, ncurses, pkg-config }:
|
2014-09-28 11:31:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "tty-clock";
|
2021-11-13 21:05:37 +00:00
|
|
|
version = "2.3+unstable=2021-04-07";
|
2014-09-28 11:31:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xorg62";
|
|
|
|
repo = "tty-clock";
|
2021-11-13 21:05:37 +00:00
|
|
|
# Use unreleased version to pull in fix for ncurses-6.3
|
|
|
|
rev = "9e00c32098524c30dac4dab701f7e33f8bc7c880";
|
|
|
|
sha256 = "14jrzz06jr29887bxgad1x6kd26c2fnqrc26864wqm3838fpcqw0";
|
2014-09-28 11:31:50 +01:00
|
|
|
};
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2021-11-13 21:05:37 +00:00
|
|
|
patches = [
|
|
|
|
# Pull upstream patch pending inclusion fir more ncurses-6.3 fixes:
|
|
|
|
# https://github.com/xorg62/tty-clock/pull/100
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.2.patch";
|
|
|
|
url = "https://github.com/xorg62/tty-clock/commit/4cfd73080da1964557484da620c401745d73881c.patch";
|
|
|
|
sha256 = "13pj1v6yrfc4vynsa746974kixfxxsy2jzzpl73c8bp7msr9d3md";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-09-28 11:31:50 +01:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2014-09-28 11:31:50 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/xorg62/tty-clock";
|
2014-09-28 11:31:50 +01:00
|
|
|
license = licenses.free;
|
|
|
|
description = "Digital clock in ncurses";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.koral ];
|
|
|
|
};
|
|
|
|
}
|