mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
zenoh: 1.4.0 -> 1.9.0
Signed-off-by: Adam Rizkalla <ajarizzo@gmail.com>
(cherry picked from commit d1c303d6df)
This commit is contained in:
parent
ec35509923
commit
cb19c6e106
1 changed files with 16 additions and 6 deletions
|
|
@ -8,22 +8,22 @@
|
|||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "zenoh";
|
||||
version = "1.4.0"; # nixpkgs-update: no auto update
|
||||
version = "1.9.0"; # nixpkgs-update: no auto update
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eclipse-zenoh";
|
||||
repo = "zenoh";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-XibcNrT9R8gdOnf4BtOi5Jqu+4XjeWngA3i/MXnkfn8=";
|
||||
hash = "sha256-sFHUphFu5a+buSa3GQvSmGo8SFtn3V5ZqTOnWMPlvs8=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-z0hSjcmVOefSiPgk6ige4wsR+LikNIjwi0On1/hyi78=";
|
||||
cargoHash = "sha256-1PjtZ5/bAnLlMbkcKAA6DCKDafItGiATjct5Pv8muas=";
|
||||
|
||||
cargoBuildFlags = [
|
||||
"--workspace"
|
||||
# exclude examples
|
||||
"--exclude"
|
||||
"examples"
|
||||
"--bins"
|
||||
"--lib"
|
||||
"--examples"
|
||||
"--exclude"
|
||||
"zenoh-backend-example"
|
||||
"--exclude"
|
||||
|
|
@ -34,6 +34,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
preInstall = ''
|
||||
cp -r $releaseDir/examples/* $tmpDir/
|
||||
bins=$(find $tmpDir \
|
||||
-maxdepth 1 \
|
||||
-type f \
|
||||
-executable \
|
||||
-regextype posix-extended \
|
||||
! -regex ".*\.(so\.[0-9.]+|so|a|d|dylib)|.*-[0-9a-f]{16,}")
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = zenoh;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue