Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.0 KiB
Nix
Raw Normal View History

2024-12-11 22:37:17 +01:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
bzip2,
zstd,
2025-02-01 11:49:12 +01:00
rocksdb,
2024-12-11 22:37:17 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "zenoh-backend-rocksdb";
2025-05-30 22:57:15 +02:00
version = "1.4.0"; # nixpkgs-update: no auto update
2024-12-11 22:37:17 +01:00
src = fetchFromGitHub {
owner = "eclipse-zenoh";
repo = "zenoh-backend-rocksdb";
tag = version;
2025-05-30 22:57:15 +02:00
hash = "sha256-7IXBzrtab7NNskO6JkPkXGxqnAFmVyIe7dLqbYAKyLs=";
2024-12-11 22:37:17 +01:00
};
useFetchCargoVendor = true;
2025-05-30 22:57:15 +02:00
cargoHash = "sha256-Lqrhu19Z++K7GIMxBHnFNyiBDfq0MxL4tUM2VDkezHw=";
2024-12-11 22:37:17 +01:00
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
bzip2
zstd
];
env = {
2025-02-01 11:49:12 +01:00
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
2024-12-11 22:37:17 +01:00
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;
};
}