nixpkgs/pkgs/development/tools/kubie/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
824 B
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles, Security }:
2020-03-07 18:55:51 +00:00
2020-05-19 09:20:00 +00:00
rustPlatform.buildRustPackage rec {
2020-03-07 18:55:51 +00:00
pname = "kubie";
2023-12-16 06:06:24 +00:00
version = "0.23.0";
2020-03-07 18:55:51 +00:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "sbstp";
repo = "kubie";
2023-12-16 06:06:24 +00:00
sha256 = "sha256-3sFtYUFUYYHDqF22XJ+pmg+fW2f03IS5CgIXjWg2+Bo=";
2020-03-07 18:55:51 +00:00
};
2023-12-16 06:06:24 +00:00
cargoHash = "sha256-9eUGGDBoeF6EM3Np95rFHU3luGuVZk5iE4kIYlUnEEw=";
2020-03-07 18:55:51 +00:00
2020-05-19 09:20:00 +00:00
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2020-05-19 09:20:00 +00:00
2020-05-19 09:20:00 +00:00
postInstall = ''
installShellCompletion completion/kubie.bash
2020-04-28 16:53:55 +00:00
'';
meta = with lib; {
2020-05-19 09:20:00 +00:00
description = "Shell independent context and namespace switcher for kubectl";
2020-03-07 18:55:51 +00:00
homepage = "https://github.com/sbstp/kubie";
license = with licenses; [ zlib ];
maintainers = with maintainers; [ illiusdope ];
};
}