diff options
author | Sarah Brofeldt <sbrofeldt@gmail.com> | 2018-10-22 21:54:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-22 21:54:36 +0200 |
commit | 9de8d713dd54a6f313d84ce09862785470295b5c (patch) | |
tree | 143248268ffa16baf562b5c7d8b9c442c408b178 /pkgs/tools | |
parent | c54c00465f37517db1fdb1be8646288934438a05 (diff) | |
parent | 1758ef04e868fc0cc7c59634c5cfef7f17154441 (diff) | |
download | nixlib-9de8d713dd54a6f313d84ce09862785470295b5c.tar nixlib-9de8d713dd54a6f313d84ce09862785470295b5c.tar.gz nixlib-9de8d713dd54a6f313d84ce09862785470295b5c.tar.bz2 nixlib-9de8d713dd54a6f313d84ce09862785470295b5c.tar.lz nixlib-9de8d713dd54a6f313d84ce09862785470295b5c.tar.xz nixlib-9de8d713dd54a6f313d84ce09862785470295b5c.tar.zst nixlib-9de8d713dd54a6f313d84ce09862785470295b5c.zip |
Merge pull request #48482 from Lassulus/ttyplot
ttyplot: init at 1.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/ttyplot/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ttyplot/default.nix b/pkgs/tools/misc/ttyplot/default.nix new file mode 100644 index 000000000000..9fdac0b8b9cc --- /dev/null +++ b/pkgs/tools/misc/ttyplot/default.nix @@ -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 ]; + }; +} |