2018-03-31 07:11:39 -07:00
|
|
|
{ darwin, fetchFromGitHub, rustPlatform, stdenv }:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
name = "click-${version}";
|
2018-09-15 01:38:15 -07:00
|
|
|
version = "0.3.2";
|
2018-03-31 07:11:39 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-09-15 01:38:15 -07:00
|
|
|
rev = "v${version}";
|
2018-03-31 07:11:39 -07:00
|
|
|
owner = "databricks";
|
|
|
|
repo = "click";
|
2018-09-15 01:38:15 -07:00
|
|
|
sha256 = "0sbj41kypn637z1w115w2h5v6bxz3y6w5ikgpx3ihsh89lkc19d2";
|
2018-03-31 07:11:39 -07:00
|
|
|
};
|
|
|
|
|
2019-05-25 04:03:08 -07:00
|
|
|
cargoSha256 = "1179a17lfr3001vp1a2adbkhdm9677n56af2c0zvkr18jas6b2w7";
|
2018-09-15 01:38:15 -07:00
|
|
|
|
|
|
|
patches = [ ./fix_cargo_lock_version.patch ];
|
2018-03-31 07:11:39 -07:00
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''The "Command Line Interactive Controller for Kubernetes"'';
|
|
|
|
homepage = https://github.com/databricks/click;
|
|
|
|
license = [ licenses.asl20 ];
|
|
|
|
maintainers = [ maintainers.mbode ];
|
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
}
|