diff --git a/pkgs/by-name/ze/zenoh-plugin-webserver/package.nix b/pkgs/by-name/ze/zenoh-plugin-webserver/package.nix new file mode 100644 index 0000000000000..298675c54d0d1 --- /dev/null +++ b/pkgs/by-name/ze/zenoh-plugin-webserver/package.nix @@ -0,0 +1,32 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + stdenv, + darwin, +}: + +rustPlatform.buildRustPackage rec { + pname = "zenoh-plugin-webserver"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "eclipse-zenoh"; + repo = "zenoh-plugin-webserver"; + rev = version; + hash = "sha256-fdnag/IcGMZUti62y3rLMZ3lt42cd3SSa8kZFXVn6BQ="; + }; + + cargoHash = "sha256-YckyHArQG/mYmDdA2qt4Wmw7Agx/CItjIgajJD0O5WA="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = { + description = "Implements an HTTP server mapping URLs to zenoh paths"; + homepage = "https://github.com/eclipse-zenoh/zenoh-plugin-webserver"; + license = with lib.licenses; [ epl20 asl20 ]; + maintainers = with lib.maintainers; [ markuskowa ]; + }; +}