Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 31 lines 732 B view raw
1{ stdenv, fetchFromGitHub, ncurses }: 2 3stdenv.mkDerivation rec { 4 name = "ttyplot-${version}"; 5 version = "1.1"; 6 7 src = fetchFromGitHub { 8 owner = "tenox7"; 9 repo = "ttyplot"; 10 rev = version; 11 sha256 = "0icv40fmf8z3a00csjh4c4svq3y6s6j70jgxjd6zqlxyks9wj7mr"; 12 }; 13 14 buildInputs = [ ncurses ]; 15 16 buildPhase = '' 17 ${stdenv.cc}/bin/cc ./ttyplot.c -lncurses -o ttyplot 18 ''; 19 20 installPhase = '' 21 mkdir -p $out/bin 22 cp ttyplot $out/bin/ 23 ''; 24 25 meta = with stdenv.lib; { 26 description = "A simple general purpose plotting utility for tty with data input from stdin"; 27 homepage = https://github.com/tenox7/ttyplot; 28 license = licenses.unlicense; 29 maintainers = with maintainers; [ lassulus ]; 30 }; 31}