Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, ncurses }: 2 3stdenv.mkDerivation rec { 4 pname = "cpustat"; 5 version = "0.02.19"; 6 7 src = fetchFromGitHub { 8 owner = "ColinIanKing"; 9 repo = pname; 10 rev = "V${version}"; 11 hash = "sha256-MujdgA+rFLrRc/N9yN7udnarA1TCzX//95hoXTUHG8Q="; 12 }; 13 14 buildInputs = [ ncurses ]; 15 16 installFlags = [ 17 "BINDIR=${placeholder "out"}/bin" 18 "MANDIR=${placeholder "out"}/share/man/man8" 19 "BASHDIR=${placeholder "out"}/share/bash-completion/completions" 20 ]; 21 22 meta = with lib; { 23 description = "CPU usage monitoring tool"; 24 homepage = "https://github.com/ColinIanKing/cpustat"; 25 license = licenses.gpl2; 26 platforms = platforms.linux; 27 maintainers = with maintainers; [ dtzWill ]; 28 }; 29}