1 { darwin, fetchFromGitHub, rustPlatform, lib, stdenv, pkg-config, openssl }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-tYSbyDipZg6Qj/CWk1QVUT5AG8ncTt+5V1+ekpmsKXA=";
14 cargoHash = "sha256-fcJTxZX9mdF4oFl/Cn1egczRy+yhWt2zLKsdLKz6Q+s=";
16 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
18 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
19 ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
22 description = ''The "Command Line Interactive Controller for Kubernetes"'';
23 homepage = "https://github.com/databricks/click";
24 license = [ licenses.asl20 ];
25 maintainers = [ maintainers.mbode ];
26 platforms = [ "x86_64-linux" "x86_64-darwin" ];
27 mainProgram = "click";