Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zeno-backends-*/plugins-*: init at 1.1.0 #364855

Merged
merged 5 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions pkgs/by-name/ze/zenoh-backend-filesystem/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
30 changes: 30 additions & 0 deletions pkgs/by-name/ze/zenoh-backend-influxdb/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
50 changes: 50 additions & 0 deletions pkgs/by-name/ze/zenoh-backend-rocksdb/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
31 changes: 31 additions & 0 deletions pkgs/by-name/ze/zenoh-plugin-mqtt/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}
30 changes: 30 additions & 0 deletions pkgs/by-name/ze/zenoh-plugin-webserver/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
Loading