mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
korrect: init at 0.1.3
This commit is contained in:
parent
b73d59b3f6
commit
7a550016fe
1 changed files with 38 additions and 0 deletions
38
pkgs/by-name/ko/korrect/package.nix
Normal file
38
pkgs/by-name/ko/korrect/package.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchCrate,
|
||||
rustPlatform,
|
||||
installShellFiles,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "korrect";
|
||||
version = "0.1.3";
|
||||
|
||||
src = fetchCrate {
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-U363YI1CQg7KAUtzN2GPm4fNnD3TgJy+6hT/3JZ8e2s=";
|
||||
};
|
||||
cargoHash = "sha256-WP03Gv+Nai834xurVzdzV4uLA8fT/lbdu4zGWUgDKJo=";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd ${finalAttrs.meta.mainProgram} \
|
||||
--bash <($out/bin/${finalAttrs.meta.mainProgram} completions bash) \
|
||||
--fish <($out/bin/${finalAttrs.meta.mainProgram} completions fish) \
|
||||
--zsh <($out/bin/${finalAttrs.meta.mainProgram} completions zsh)
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Kubectl version managing shim that invokes the correct kubectl version";
|
||||
homepage = "https://gitlab.com/cromulentbanana/korrect";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.dwt ];
|
||||
mainProgram = "korrect";
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue