nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 993 B view raw
1{ 2 lib, 3 kubectl, 4 rustPlatform, 5 fetchFromGitHub, 6 installShellFiles, 7 makeWrapper, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "kubie"; 12 version = "0.26.0"; 13 14 src = fetchFromGitHub { 15 rev = "v${version}"; 16 owner = "sbstp"; 17 repo = "kubie"; 18 sha256 = "sha256-nNoH5523EuDt+dbeFgOpMkbGS6P+Hk6Ck0FmariSFRs="; 19 }; 20 21 buildNoDefaultFeatures = true; 22 23 cargoHash = "sha256-G3bbAj3vo4dchq1AYoG4U/ST9JLiV2F4XjKCvYo48MI="; 24 25 nativeBuildInputs = [ 26 installShellFiles 27 makeWrapper 28 ]; 29 30 postInstall = '' 31 installShellCompletion completion/kubie.{bash,fish} 32 33 wrapProgram "$out/bin/kubie" \ 34 --prefix PATH : "${ 35 lib.makeBinPath [ 36 kubectl 37 ] 38 }" 39 ''; 40 41 meta = { 42 description = "Shell independent context and namespace switcher for kubectl"; 43 mainProgram = "kubie"; 44 homepage = "https://github.com/sbstp/kubie"; 45 license = with lib.licenses; [ zlib ]; 46 maintainers = with lib.maintainers; [ illiusdope ]; 47 }; 48}