mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 20:23:39 +00:00
![Alyssa Ross](/assets/img/avatar_default.png)
This hasn't been necessary since kubectl-view-allocations commit
0a2e061
("➖ switch from openssl to rustls (like kube-rs 0.86)").
37 lines
822 B
Nix
37 lines
822 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, Security ? null
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "kubectl-view-allocations";
|
|
version = "0.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "davidB";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-BM0TLzoXQg3m5fdQEnO/tErW8xmuljo74GprwEgJN8o=";
|
|
};
|
|
|
|
postPatch = ''
|
|
cp ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
meta = with lib; {
|
|
description = "kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)";
|
|
homepage = "https://github.com/davidB/kubectl-view-allocations";
|
|
license = licenses.cc0;
|
|
maintainers = [ maintainers.mrene ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|