Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 fetchFromGitHub, 3 rustPlatform, 4 lib, 5 stdenv, 6 pkg-config, 7 openssl, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "click"; 12 version = "0.6.3"; 13 14 src = fetchFromGitHub { 15 owner = "databricks"; 16 repo = "click"; 17 rev = "v${version}"; 18 hash = "sha256-tYSbyDipZg6Qj/CWk1QVUT5AG8ncTt+5V1+ekpmsKXA="; 19 }; 20 21 cargoHash = "sha256-K9+SGpWcsOy0l8uj1z6AQggZq+M7wHARACFxsZ6vbUo="; 22 23 nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ]; 24 25 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ]; 26 27 meta = with lib; { 28 description = ''The "Command Line Interactive Controller for Kubernetes"''; 29 homepage = "https://github.com/databricks/click"; 30 license = [ licenses.asl20 ]; 31 maintainers = [ maintainers.mbode ]; 32 platforms = [ 33 "x86_64-linux" 34 "x86_64-darwin" 35 ]; 36 mainProgram = "click"; 37 }; 38}