1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/pkgs/tools/misc/ttyplot/default.nix

32 lines
724 B
Nix
Raw Normal View History

2018-10-15 21:03:17 +01:00
{ stdenv, fetchFromGitHub, ncurses }:
2018-10-15 21:03:17 +01:00
stdenv.mkDerivation rec {
pname = "ttyplot";
version = "1.4";
2018-10-15 21:03:17 +01:00
src = fetchFromGitHub {
owner = "tenox7";
repo = "ttyplot";
rev = version;
sha256 = "19qm0hx9ljdw9qg78lydn3c627xy7xnx3knq5f7caw9lf0cdp7kf";
2018-10-15 21:03:17 +01: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";
homepage = "https://github.com/tenox7/ttyplot";
2018-10-15 21:03:17 +01:00
license = licenses.unlicense;
maintainers = with maintainers; [ lassulus ];
};
}