Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 rustPlatform, 5 fetchFromGitHub, 6 versionCheckHook, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "kubectl-view-allocations"; 11 version = "0.23.4"; 12 13 src = fetchFromGitHub { 14 owner = "davidB"; 15 repo = "kubectl-view-allocations"; 16 tag = version; 17 hash = "sha256-xSjWUSHgx85K6RAl16S0QCNeveDte2SwHcxkS1EChZU="; 18 }; 19 20 cargoHash = "sha256-Dr8ORNje0icV13YdUSxYGPcok3RAXVNsCZKxnprJGSY="; 21 22 doInstallCheck = true; 23 nativeInstallCheckInputs = [ versionCheckHook ]; 24 versionCheckProgramArg = "--version"; 25 26 meta = { 27 description = "kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)"; 28 homepage = "https://github.com/davidB/kubectl-view-allocations"; 29 license = lib.licenses.cc0; 30 maintainers = with lib.maintainers; [ mrene ]; 31 platforms = lib.platforms.unix; 32 }; 33}