acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / cl / click / package.nix
bloba471c5827c76283116c6d557bb2d49581401d41e
1 { darwin, fetchFromGitHub, rustPlatform, lib, stdenv, pkg-config, openssl }:
3 rustPlatform.buildRustPackage rec {
4   pname = "click";
5   version = "0.6.3";
7   src = fetchFromGitHub {
8     owner = "databricks";
9     repo = "click";
10     rev = "v${version}";
11     hash = "sha256-tYSbyDipZg6Qj/CWk1QVUT5AG8ncTt+5V1+ekpmsKXA=";
12   };
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 ];
21   meta = with lib; {
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";
28   };