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

31 lines
828 B
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles, Security }:
2020-03-07 19:55:51 +01:00
2020-05-19 11:20:00 +02:00
rustPlatform.buildRustPackage rec {
2020-03-07 19:55:51 +01:00
pname = "kubie";
2020-12-04 16:22:37 +01:00
version = "0.11.1";
2020-03-07 19:55:51 +01:00
src = fetchFromGitHub {
rev = "v${version}";
owner = "sbstp";
repo = "kubie";
2020-12-04 16:22:37 +01:00
sha256 = "0q21qd9fhchggby18gzyvds517n9vq7b1rr0gmzik4036ykg1lm2";
2020-03-07 19:55:51 +01:00
};
2020-12-04 16:22:37 +01:00
cargoSha256 = "0dp4prv8c2a6mxl7wskpc65qlfjphdxshb4q2bswqa5i21h8r534";
2020-03-07 19:55:51 +01:00
2020-05-19 11:20:00 +02:00
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
2020-05-19 11:20:00 +02:00
2020-05-19 11:20:00 +02:00
postInstall = ''
installShellCompletion completion/kubie.bash
2020-04-28 18:53:55 +02:00
'';
meta = with lib; {
2020-05-19 11:20:00 +02:00
description = "Shell independent context and namespace switcher for kubectl";
2020-03-07 19:55:51 +01:00
homepage = "https://github.com/sbstp/kubie";
license = with licenses; [ zlib ];
maintainers = with maintainers; [ illiusdope ];
};
}