Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
806 B
Nix

{
stdenvNoCC,
lib,
fetchFromGitHub,
bash,
}:
stdenvNoCC.mkDerivation rec {
pname = "kubectl-node-shell";
version = "1.11.0";
src = fetchFromGitHub {
owner = "kvaps";
repo = "kubectl-node-shell";
rev = "v${version}";
hash = "sha256-jLwnWp/XS4SOyf5v46DPy2Nc6LatF6AzNvHiGVNpsto=";
};
strictDeps = true;
buildInputs = [ bash ];
installPhase = ''
runHook preInstall
install -m755 ./kubectl-node_shell -D $out/bin/kubectl-node_shell
runHook postInstall
'';
meta = {
description = "Exec into node via kubectl";
mainProgram = "kubectl-node_shell";
homepage = "https://github.com/kvaps/kubectl-node-shell";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jocelynthode ];
platforms = lib.platforms.unix;
};
}