File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
+ } )
You can’t perform that action at this time.
0 commit comments