depot/pkgs/applications/networking/cluster/kubectl-view-allocations/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

36 lines
835 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.hostPlatform.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;
};
}