nixpkgs/pkgs/applications/networking/cluster/click/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
915 B
Nix
Raw Normal View History

2023-08-15 10:39:42 +00:00
{ darwin, fetchFromGitHub, rustPlatform, lib, stdenv, pkg-config, openssl }:
2018-03-31 14:11:39 +00:00
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "click";
2023-08-15 10:39:42 +00:00
version = "0.6.2";
2018-03-31 14:11:39 +00:00
src = fetchFromGitHub {
owner = "databricks";
repo = "click";
2023-08-15 10:39:42 +00:00
rev = "v${version}";
hash = "sha256-rwS08miRpc+Q9DRuspr21NMYpEYmmscvzarDnjyVe5c=";
2018-03-31 14:11:39 +00:00
};
2023-08-15 10:39:42 +00:00
cargoHash = "sha256-WNITVYTS7JWrBBwxlQuVTmLddWLbDJACizEsRiustGg=";
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
2018-03-31 14:11:39 +00:00
2023-08-15 10:39:42 +00:00
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
2018-03-31 14:11:39 +00:00
meta = with lib; {
2018-03-31 14:11:39 +00:00
description = ''The "Command Line Interactive Controller for Kubernetes"'';
homepage = "https://github.com/databricks/click";
2018-03-31 14:11:39 +00:00
license = [ licenses.asl20 ];
maintainers = [ maintainers.mbode ];
platforms = [ "x86_64-linux" "x86_64-darwin" ];
2023-08-15 10:39:42 +00:00
mainProgram = "click";
2018-03-31 14:11:39 +00:00
};
}