2018-10-15 20:03:17 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses }:
|
2018-12-14 02:48:57 +00:00
|
|
|
|
2018-10-15 20:03:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ttyplot-${version}";
|
2018-12-14 02:48:57 +00:00
|
|
|
version = "1.1";
|
2018-10-15 20:03:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tenox7";
|
|
|
|
repo = "ttyplot";
|
|
|
|
rev = version;
|
2018-12-14 02:48:57 +00:00
|
|
|
sha256 = "0icv40fmf8z3a00csjh4c4svq3y6s6j70jgxjd6zqlxyks9wj7mr";
|
2018-10-15 20:03:17 +00: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 02:48:57 +00:00
|
|
|
description = "A simple general purpose plotting utility for tty with data input from stdin";
|
2018-10-15 20:03:17 +00:00
|
|
|
homepage = https://github.com/tenox7/ttyplot;
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ lassulus ];
|
|
|
|
};
|
|
|
|
}
|