nixpkgs/pkgs/tools/misc/ttyplot/default.nix
R. RyanTM daf6e55801 ttyplot: 1.0 -> 1.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/ttyplot/versions
2018-12-14 06:17:01 -05:00

31 lines
732 B
Nix

{ stdenv, fetchFromGitHub, ncurses }:
stdenv.mkDerivation rec {
name = "ttyplot-${version}";
version = "1.1";
src = fetchFromGitHub {
owner = "tenox7";
repo = "ttyplot";
rev = version;
sha256 = "0icv40fmf8z3a00csjh4c4svq3y6s6j70jgxjd6zqlxyks9wj7mr";
};
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";
homepage = https://github.com/tenox7/ttyplot;
license = licenses.unlicense;
maintainers = with maintainers; [ lassulus ];
};
}