mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-01 00:12:39 +03:00
commit
9de8d713dd
30
pkgs/tools/misc/ttyplot/default.nix
Normal file
30
pkgs/tools/misc/ttyplot/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, ncurses }:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "ttyplot-${version}";
|
||||||
|
version = "1.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "tenox7";
|
||||||
|
repo = "ttyplot";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1i54hw7fad42gdlrlqg7s0vhsq01yxzdi2s0r3svwbb1sr7ynzn1";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -5741,6 +5741,8 @@ with pkgs;
|
|||||||
|
|
||||||
tty-clock = callPackage ../tools/misc/tty-clock { };
|
tty-clock = callPackage ../tools/misc/tty-clock { };
|
||||||
|
|
||||||
|
ttyplot = callPackage ../tools/misc/ttyplot { };
|
||||||
|
|
||||||
ttyrec = callPackage ../tools/misc/ttyrec { };
|
ttyrec = callPackage ../tools/misc/ttyrec { };
|
||||||
|
|
||||||
ttylog = callPackage ../tools/misc/ttylog { };
|
ttylog = callPackage ../tools/misc/ttylog { };
|
||||||
|
Loading…
Reference in New Issue
Block a user