zenoh-c: init at 1.4.0

This commit is contained in:
Markus Kowalewski
2025-06-10 11:22:28 +02:00
parent 088823fa9f
commit a5f1de2759
+53
View File
@@ -0,0 +1,53 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
cargo,
rustPlatform,
rustc,
}:
stdenv.mkDerivation rec {
pname = "zenoh-c";
version = "1.4.0"; # nixpkgs-update: no auto update
src = fetchFromGitHub {
owner = "eclipse-zenoh";
repo = "zenoh-c";
tag = version;
hash = "sha256-Mn3diwJgMkYXP9Dn5AqquN1UJ+P+b4QadiXqzzYZK+o=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src pname version;
hash = "sha256-Z9xKC7svGPSuQm4KCKOfGAFOdWgSjBK+/LFT3rAebTg=";
};
outputs = [
"out"
"dev"
];
nativeBuildInputs = [
cmake
cargo
rustPlatform.cargoSetupHook
rustc
];
postInstall = ''
substituteInPlace $out/lib/pkgconfig/zenohc.pc \
--replace-fail "\''${prefix}/" ""
'';
meta = {
description = "C API for zenoh";
homepage = "https://github.com/eclipse-zenoh/zenoh-c";
license = with lib.licenses; [
asl20
epl20
];
maintainers = with lib.maintainers; [ markuskowa ];
};
}