2021-01-11 07:54:33 +00:00
|
|
|
{ darwin, fetchFromGitHub, rustPlatform, lib, stdenv }:
|
2018-03-31 15:11:39 +01:00
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "click";
|
2019-08-03 17:39:45 +01:00
|
|
|
version = "0.4.2";
|
2018-03-31 15:11:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-09-15 09:38:15 +01:00
|
|
|
rev = "v${version}";
|
2018-03-31 15:11:39 +01:00
|
|
|
owner = "databricks";
|
|
|
|
repo = "click";
|
2019-08-03 17:39:45 +01:00
|
|
|
sha256 = "18mpzvvww2g6y2d3m8wcfajzdshagihn59k03xvcknd5d8zxagl3";
|
2018-03-31 15:11:39 +01:00
|
|
|
};
|
|
|
|
|
2021-05-07 12:00:49 +01:00
|
|
|
cargoSha256 = "16r5rwdbqyb5xrjc55i30xb20crpyjc75zn10xxjkicmvrpwydp6";
|
2018-03-31 15:11:39 +01:00
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
2018-03-31 15:11:39 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-31 15:11:39 +01:00
|
|
|
description = ''The "Command Line Interactive Controller for Kubernetes"'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/databricks/click";
|
2018-03-31 15:11:39 +01:00
|
|
|
license = [ licenses.asl20 ];
|
|
|
|
maintainers = [ maintainers.mbode ];
|
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
}
|