mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 17:46:29 +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;
|
githubId = 7389000;
|
||||||
name = "Dominic Wrege";
|
name = "Dominic Wrege";
|
||||||
};
|
};
|
||||||
|
dwt = {
|
||||||
|
email = "spamfaenger@gmx.de";
|
||||||
|
github = "dwt";
|
||||||
|
githubId = 57199;
|
||||||
|
name = "Martin Häcker";
|
||||||
|
};
|
||||||
dxf = {
|
dxf = {
|
||||||
email = "dingxiangfei2009@gmail.com";
|
email = "dingxiangfei2009@gmail.com";
|
||||||
github = "dingxiangfei2009";
|
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