nixpkgs/pkgs/tools/misc/ttyplot/default.nix
2024-02-13 04:20:00 +00:00

32 lines
721 B
Nix

{ lib, stdenv, fetchFromGitHub, ncurses, pkg-config }:
stdenv.mkDerivation rec {
pname = "ttyplot";
version = "1.6.2";
src = fetchFromGitHub {
owner = "tenox7";
repo = "ttyplot";
rev = version;
hash = "sha256-HBJvTDhp1CA96gRU2Q+lMxcFaZ+txXcmNb8Cg1BFiH4=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
ncurses
];
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.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ lassulus ];
mainProgram = "ttyplot";
};
}