mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 13:39:15 +03:00
kubectl-view-allocations: 0.18.1 -> 0.20.5 (#375103)
This commit is contained in:
commit
298793e609
2 changed files with 15 additions and 2193 deletions
File diff suppressed because it is too large
Load diff
|
@ -4,34 +4,34 @@
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
Security ? null,
|
Security ? null,
|
||||||
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "kubectl-view-allocations";
|
pname = "kubectl-view-allocations";
|
||||||
version = "0.18.1";
|
version = "0.20.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "davidB";
|
owner = "davidB";
|
||||||
repo = pname;
|
repo = "kubectl-view-allocations";
|
||||||
rev = version;
|
tag = version;
|
||||||
sha256 = "sha256-BM0TLzoXQg3m5fdQEnO/tErW8xmuljo74GprwEgJN8o=";
|
hash = "sha256-Y+Yki0wTi/OTWbUvk+8EhTlhF7H51RrdFLFXk2VqF1M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
useFetchCargoVendor = true;
|
||||||
cp ${./Cargo.lock} Cargo.lock
|
cargoHash = "sha256-6sRpsXydzKB0ZaV1HeagINgb6ol9dj3XT0+pd53QOCw=";
|
||||||
'';
|
|
||||||
|
|
||||||
cargoLock = {
|
|
||||||
lockFile = ./Cargo.lock;
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
||||||
|
|
||||||
meta = with lib; {
|
doInstallCheck = true;
|
||||||
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
|
versionCheckProgramArg = "--version";
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)";
|
description = "kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)";
|
||||||
homepage = "https://github.com/davidB/kubectl-view-allocations";
|
homepage = "https://github.com/davidB/kubectl-view-allocations";
|
||||||
license = licenses.cc0;
|
license = lib.licenses.cc0;
|
||||||
maintainers = [ maintainers.mrene ];
|
maintainers = with lib.maintainers; [ mrene ];
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue