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