2018-10-15 22:03:17 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses }:
|
2018-12-14 03:48:57 +01:00
|
|
|
|
2018-10-15 22:03:17 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ttyplot";
|
2019-05-13 11:12:50 +02:00
|
|
|
version = "1.4";
|
2018-10-15 22:03:17 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tenox7";
|
|
|
|
repo = "ttyplot";
|
|
|
|
rev = version;
|
2019-05-13 11:12:50 +02:00
|
|
|
sha256 = "19qm0hx9ljdw9qg78lydn3c627xy7xnx3knq5f7caw9lf0cdp7kf";
|
2018-10-15 22:03:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
${stdenv.cc}/bin/cc ./ttyplot.c -lncurses -o ttyplot
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ttyplot $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-12-14 03:48:57 +01:00
|
|
|
description = "A simple general purpose plotting utility for tty with data input from stdin";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/tenox7/ttyplot";
|
2018-10-15 22:03:17 +02:00
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ lassulus ];
|
|
|
|
};
|
|
|
|
}
|