at 24.11-pre 721 B view raw
1{ lib, stdenv, fetchFromGitHub, ncurses, pkg-config }: 2 3stdenv.mkDerivation rec { 4 pname = "ttyplot"; 5 version = "1.6.4"; 6 7 src = fetchFromGitHub { 8 owner = "tenox7"; 9 repo = "ttyplot"; 10 rev = version; 11 hash = "sha256-yxAFqi3TgiKiZYgR891ahkwUqZLk/JDsjujOYmBjUtk="; 12 }; 13 14 nativeBuildInputs = [ 15 pkg-config 16 ]; 17 18 buildInputs = [ 19 ncurses 20 ]; 21 22 makeFlags = [ "PREFIX=$(out)" ]; 23 24 meta = with lib; { 25 description = "A simple general purpose plotting utility for tty with data input from stdin"; 26 homepage = "https://github.com/tenox7/ttyplot"; 27 license = licenses.asl20; 28 platforms = platforms.all; 29 maintainers = with maintainers; [ lassulus ]; 30 mainProgram = "ttyplot"; 31 }; 32}