Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 ncurses, 6 pkg-config, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "ttyplot"; 11 version = "1.7.2"; 12 13 src = fetchFromGitHub { 14 owner = "tenox7"; 15 repo = "ttyplot"; 16 rev = version; 17 hash = "sha256-zTbcl8hM/XYdkV8V/BCQ94fuFXWOMGdQZeowKRhvYNo="; 18 }; 19 20 nativeBuildInputs = [ 21 pkg-config 22 ]; 23 24 buildInputs = [ 25 ncurses 26 ]; 27 28 makeFlags = [ "PREFIX=$(out)" ]; 29 30 meta = with lib; { 31 description = "Simple general purpose plotting utility for tty with data input from stdin"; 32 homepage = "https://github.com/tenox7/ttyplot"; 33 license = licenses.asl20; 34 platforms = platforms.all; 35 maintainers = with maintainers; [ lassulus ]; 36 mainProgram = "ttyplot"; 37 }; 38}