Skip to content

Commit 14b3756

Browse files
committed
korrect: init at 0.1.3
1 parent b73d59b commit 14b3756

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

pkgs/by-name/ko/korrect/package.nix

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
lib,
3+
fetchCrate,
4+
rustPlatform,
5+
installShellFiles,
6+
nix-update-script,
7+
}:
8+
9+
rustPlatform.buildRustPackage (finalAttrs: {
10+
pname = "korrect";
11+
version = "0.1.3";
12+
13+
src = fetchCrate {
14+
inherit (finalAttrs) pname version;
15+
hash = "sha256-U363YI1CQg7KAUtzN2GPm4fNnD3TgJy+6hT/3JZ8e2s=";
16+
};
17+
cargoHash = "sha256-WP03Gv+Nai834xurVzdzV4uLA8fT/lbdu4zGWUgDKJo=";
18+
19+
passthru.updateScript = nix-update-script { };
20+
21+
nativeBuildInputs = [ installShellFiles ];
22+
23+
postInstall = ''
24+
installShellCompletion --cmd ${finalAttrs.pname} \
25+
--bash <($out/bin/${finalAttrs.pname} completions bash) \
26+
--fish <($out/bin/${finalAttrs.pname} completions fish) \
27+
--zsh <($out/bin/${finalAttrs.pname} completions zsh)
28+
'';
29+
30+
meta = {
31+
description = "Kubectl version managing shim that invokes the correct kubectl version";
32+
homepage = "https://gitlab.com/cromulentbanana/korrect";
33+
license = lib.licenses.mit;
34+
maintainers = [ lib.maintainers.dwt ];
35+
mainProgram = "korrect";
36+
};
37+
})

0 commit comments

Comments
 (0)