Skip to content

Commit

Permalink
zeno-backends-*/plugins-*: init at 1.1.0 (#364855)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskowa authored Dec 15, 2024
2 parents f6370c1 + 6624a19 commit b595820
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 0 deletions.
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;
};
}

0 comments on commit b595820

Please sign in to comment.