nixpkgs/pkgs/tools/misc/ttyplot/default.nix

32 lines
732 B
Nix
Raw Normal View History

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