diff --git a/pkgs/by-name/ze/zenoh-backend-filesystem/package.nix b/pkgs/by-name/ze/zenoh-backend-filesystem/package.nix new file mode 100644 index 0000000000000..0717a38b084b0 --- /dev/null +++ b/pkgs/by-name/ze/zenoh-backend-filesystem/package.nix @@ -0,0 +1,50 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + bzip2, + zstd, + rocksdb_8_11, +}: + +rustPlatform.buildRustPackage rec { + pname = "zenoh-backend-filesystem"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "eclipse-zenoh"; + repo = "zenoh-backend-filesystem"; + tag = version; + hash = "sha256-HZp0kR7vCXRg04aiRbefbTMprgOH3Chy7X2x8X9urTk="; + }; + + cargoHash = "sha256-HXxlgAszm2HbuKRhoWjluu/U9PMRHxs4/TRxEsl0Cgg="; + + nativeBuildInputs = [ + pkg-config + rustPlatform.bindgenHook + ]; + + buildInputs = [ + bzip2 + zstd + ]; + + env = { + ROCKSDB_INCLUDE_DIR = "${rocksdb_8_11}/include"; + ROCKSDB_LIB_DIR = "${rocksdb_8_11}/lib"; + ZSTD_SYS_USE_PKG_CONFIG = true; + }; + + meta = { + description = "Backend and Storages for zenoh using the file system"; + homepage = "https://github.com/eclipse-zenoh/zenoh-backend-filesystem"; + license = with lib.licenses; [ + epl20 + asl20 + ]; + maintainers = with lib.maintainers; [ markuskowa ]; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/by-name/ze/zenoh-backend-influxdb/package.nix b/pkgs/by-name/ze/zenoh-backend-influxdb/package.nix new file mode 100644 index 0000000000000..0da5f92644e21 --- /dev/null +++ b/pkgs/by-name/ze/zenoh-backend-influxdb/package.nix @@ -0,0 +1,30 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: + +rustPlatform.buildRustPackage rec { + pname = "zenoh-backend-influxdb"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "eclipse-zenoh"; + repo = "zenoh-backend-influxdb"; + tag = version; + hash = "sha256-VQoJO+9DYDkIKTTqLy/i2uBeFPuXO2Y0NnYrJTa1tvc="; + }; + + cargoHash = "sha256-kaaOcRDqqZvVNfCuIKYJAPK+KLUE41/1R/Cih4cpVjw="; + + meta = { + description = "Backend and Storages for zenoh using InfluxDB"; + homepage = "https://github.com/eclipse-zenoh/zenoh-backend-influxdb"; + license = with lib.licenses; [ + epl20 + asl20 + ]; + maintainers = with lib.maintainers; [ markuskowa ]; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/by-name/ze/zenoh-backend-rocksdb/package.nix b/pkgs/by-name/ze/zenoh-backend-rocksdb/package.nix new file mode 100644 index 0000000000000..f47ab1cd931b4 --- /dev/null +++ b/pkgs/by-name/ze/zenoh-backend-rocksdb/package.nix @@ -0,0 +1,50 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + bzip2, + zstd, + rocksdb_8_11, +}: + +rustPlatform.buildRustPackage rec { + pname = "zenoh-backend-rocksdb"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "eclipse-zenoh"; + repo = "zenoh-backend-rocksdb"; + tag = version; + hash = "sha256-QCUS3jiWa2gbD/X/Va8s5WX4+3RKFOizh8FB/nsqWGM="; + }; + + cargoHash = "sha256-k7u4P3ropwgzaqN/bom4mfOsXvNHmn3VQc7NUakgusA="; + + nativeBuildInputs = [ + pkg-config + rustPlatform.bindgenHook + ]; + + buildInputs = [ + bzip2 + zstd + ]; + + env = { + ROCKSDB_INCLUDE_DIR = "${rocksdb_8_11}/include"; + ROCKSDB_LIB_DIR = "${rocksdb_8_11}/lib"; + ZSTD_SYS_USE_PKG_CONFIG = true; + }; + + meta = { + description = "Backend and Storages for zenoh using RocksDB"; + homepage = "https://github.com/eclipse-zenoh/zenoh-backend-rocksdb"; + license = with lib.licenses; [ + epl20 + asl20 + ]; + maintainers = with lib.maintainers; [ markuskowa ]; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/by-name/ze/zenoh-plugin-mqtt/package.nix b/pkgs/by-name/ze/zenoh-plugin-mqtt/package.nix new file mode 100644 index 0000000000000..55caabff898dd --- /dev/null +++ b/pkgs/by-name/ze/zenoh-plugin-mqtt/package.nix @@ -0,0 +1,31 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: + +rustPlatform.buildRustPackage rec { + pname = "zenoh-plugin-mqtt"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "eclipse-zenoh"; + repo = "zenoh-plugin-mqtt"; + tag = version; + hash = "sha256-GsYT46mBsvvSW3BG2stVpERvelbRIiUaWTco39IY6/A="; + }; + + cargoHash = "sha256-8q8pMUMciB8cPSpkeu9sjGJm6DxXicd0k/NJ+1uz4VU="; + + meta = { + description = "A Zenoh plug-in that allows to integrate and/or route MQTT pub/sub with Eclipse Zenoh"; + homepage = "https://github.com/eclipse-zenoh/zenoh-plugin-mqtt"; + license = with lib.licenses; [ + epl20 + asl20 + ]; + maintainers = with lib.maintainers; [ markuskowa ]; + platforms = lib.platforms.linux; + mainProgram = "zenoh-bridge-mqtt"; + }; +} 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..551b9d048148e --- /dev/null +++ b/pkgs/by-name/ze/zenoh-plugin-webserver/package.nix @@ -0,0 +1,30 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, +}: + +rustPlatform.buildRustPackage rec { + pname = "zenoh-plugin-webserver"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "eclipse-zenoh"; + repo = "zenoh-plugin-webserver"; + tag = version; + hash = "sha256-fdnag/IcGMZUti62y3rLMZ3lt42cd3SSa8kZFXVn6BQ="; + }; + + cargoHash = "sha256-YckyHArQG/mYmDdA2qt4Wmw7Agx/CItjIgajJD0O5WA="; + + 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 ]; + platforms = lib.platforms.linux; + }; +}