click: modernize

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-06-06 13:17:31 -07:00
parent 241d6617e4
commit f69ebf763c
+7 -5
View File
@@ -5,16 +5,19 @@
stdenv,
pkg-config,
openssl,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "click";
version = "0.6.3";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "databricks";
repo = "click";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-tYSbyDipZg6Qj/CWk1QVUT5AG8ncTt+5V1+ekpmsKXA=";
};
@@ -24,15 +27,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "Command Line Interactive Controller for Kubernetes";
homepage = "https://github.com/databricks/click";
license = [ lib.licenses.asl20 ];
maintainers = [ lib.maintainers.mbode ];
platforms = [
"x86_64-linux"
"x86_64-darwin"
];
mainProgram = "click";
};
})