{ lib, stdenv, rustPlatform, fetchFromGitHub, versionCheckHook, }: rustPlatform.buildRustPackage rec { pname = "kubectl-view-allocations"; version = "0.23.4"; src = fetchFromGitHub { owner = "davidB"; repo = "kubectl-view-allocations"; tag = version; hash = "sha256-xSjWUSHgx85K6RAl16S0QCNeveDte2SwHcxkS1EChZU="; }; cargoHash = "sha256-Dr8ORNje0icV13YdUSxYGPcok3RAXVNsCZKxnprJGSY="; 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; }; }