mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +09:00
korrect: init at 0.1.3 (#403417)
This commit is contained in:
commit
d2a01e9455
2 changed files with 44 additions and 0 deletions
|
@ -6870,6 +6870,12 @@
|
|||
githubId = 7389000;
|
||||
name = "Dominic Wrege";
|
||||
};
|
||||
dwt = {
|
||||
email = "spamfaenger@gmx.de";
|
||||
github = "dwt";
|
||||
githubId = 57199;
|
||||
name = "Martin Häcker";
|
||||
};
|
||||
dxf = {
|
||||
email = "dingxiangfei2009@gmail.com";
|
||||
github = "dingxiangfei2009";
|
||||
|
|
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