{ lib, stdenv, rustPlatform, fetchFromGitHub, versionCheckHook, }: rustPlatform.buildRustPackage rec { pname = "kubectl-view-allocations"; version = "1.0.0"; src = fetchFromGitHub { owner = "davidB"; repo = "kubectl-view-allocations"; tag = version; hash = "sha256-R4pxbIUY9QEsblbVv2/QbWZv7A/ZDQmUnOCYB34RkdE="; }; cargoHash = "sha256-liExE40Ldel1G4RT3P1y5Da65RJSrc7HD+52SwW0oeg="; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version"; meta = { description = "kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)"; homepage = "https://github.com/davidB/kubectl-view-allocations"; license = lib.licenses.cc0; maintainers = with lib.maintainers; [ mrene ]; platforms = lib.platforms.unix; }; }