Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 34 lines 984 B view raw
1{ lib, rustPlatform, fetchFromGitHub, installShellFiles, libxcb }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "kmon"; 5 version = "1.6.3"; 6 7 src = fetchFromGitHub { 8 owner = "orhun"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-lB6vJqb6/Qwj3odCJzyQ0+xEl5V/ZPj9cAJGNfiYAOY="; 12 }; 13 14 cargoSha256 = "sha256-Ff5vGc90VxmyKQSsjUfoI1NL95DmD1SJx3eC1SP6rt4="; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 buildInputs = [ libxcb ]; 19 20 postInstall = '' 21 installManPage $releaseDir/../man/kmon.8 22 installShellCompletion $releaseDir/../completions/kmon.{bash,fish} \ 23 --zsh $releaseDir/../completions/_kmon 24 ''; 25 26 meta = with lib; { 27 description = "Linux Kernel Manager and Activity Monitor"; 28 homepage = "https://github.com/orhun/kmon"; 29 changelog = "https://github.com/orhun/kmon/blob/v${version}/CHANGELOG.md"; 30 license = licenses.gpl3Only; 31 platforms = platforms.linux; 32 maintainers = with maintainers; [ figsoda misuzu ]; 33 }; 34}