Loading pkgs/tools/misc/ttyplot/default.nix +9 −13 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, ncurses }: { lib, stdenv, fetchFromGitHub, ncurses, pkg-config }: stdenv.mkDerivation rec { pname = "ttyplot"; version = "1.5.2"; version = "1.6.1"; src = fetchFromGitHub { owner = "tenox7"; repo = "ttyplot"; rev = version; sha256 = "sha256-BYMdGNDl8HUin1Hu4Fqgx305a/tTt1fztqlT2vDeTh8="; hash = "sha256-SQ5keCcwzQsSxfSevQwRa1eNf+8JXsrh1vljehI4tPc="; }; buildInputs = [ ncurses ]; buildInputs = [ pkg-config ncurses ]; buildPhase = '' ${stdenv.cc}/bin/cc ./ttyplot.c -lncurses -o ttyplot ''; installPhase = '' mkdir -p $out/bin cp ttyplot $out/bin/ ''; makeFlags = [ "PREFIX=$(out)" ]; meta = with lib; { description = "A simple general purpose plotting utility for tty with data input from stdin"; homepage = "https://github.com/tenox7/ttyplot"; license = licenses.unlicense; license = licenses.asl20; maintainers = with maintainers; [ lassulus ]; mainProgram = "ttyplot"; }; Loading Loading
pkgs/tools/misc/ttyplot/default.nix +9 −13 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, ncurses }: { lib, stdenv, fetchFromGitHub, ncurses, pkg-config }: stdenv.mkDerivation rec { pname = "ttyplot"; version = "1.5.2"; version = "1.6.1"; src = fetchFromGitHub { owner = "tenox7"; repo = "ttyplot"; rev = version; sha256 = "sha256-BYMdGNDl8HUin1Hu4Fqgx305a/tTt1fztqlT2vDeTh8="; hash = "sha256-SQ5keCcwzQsSxfSevQwRa1eNf+8JXsrh1vljehI4tPc="; }; buildInputs = [ ncurses ]; buildInputs = [ pkg-config ncurses ]; buildPhase = '' ${stdenv.cc}/bin/cc ./ttyplot.c -lncurses -o ttyplot ''; installPhase = '' mkdir -p $out/bin cp ttyplot $out/bin/ ''; makeFlags = [ "PREFIX=$(out)" ]; meta = with lib; { description = "A simple general purpose plotting utility for tty with data input from stdin"; homepage = "https://github.com/tenox7/ttyplot"; license = licenses.unlicense; license = licenses.asl20; maintainers = with maintainers; [ lassulus ]; mainProgram = "ttyplot"; }; Loading