From 6c4905f87304f7606db7449990ac0ac10b100561 Mon Sep 17 00:00:00 2001 From: 0x4A6F <0x4A6F@users.noreply.github.com> Date: Wed, 18 Jun 2025 21:17:19 +0200 Subject: [PATCH] rotonda: 0.4.1 -> 0.4.2 --- pkgs/by-name/ro/rotonda/package.nix | 41 ++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/ro/rotonda/package.nix b/pkgs/by-name/ro/rotonda/package.nix index 382906cf36d3..2f6618eb582a 100644 --- a/pkgs/by-name/ro/rotonda/package.nix +++ b/pkgs/by-name/ro/rotonda/package.nix @@ -2,31 +2,54 @@ lib, rustPlatform, fetchFromGitHub, + stdenv, nix-update-script, + testers, + rotonda, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "rotonda"; - version = "0.4.1"; + version = "0.4.2"; src = fetchFromGitHub { owner = "NLnetLabs"; repo = "rotonda"; - tag = "v${version}"; - hash = "sha256-DpFrJH37ysNc3hv7UrDktqRWrucAX6ZlpwUAT0PDm5k="; + tag = "v${finalAttrs.version}"; + hash = "sha256-B2sdQr9PctWZBpDuatJkUApW5T98BQa4HiqL8+HHevY="; }; - passthru.updateScript = nix-update-script { }; - useFetchCargoVendor = true; - cargoHash = "sha256-cWPsFUa31hcNzqSSBbnhWccJqYGQbpbZNcVr0G14cqE="; + cargoHash = "sha256-XbBlA7QYUtD4uBz4t5ZR70o9bMgVLeSzq6Lexe0jzME="; + + checkFlags = + lib.optionals + (stdenv.hostPlatform.system == "aarch64-darwin" || stdenv.hostPlatform.system == "x86_64-darwin") + [ + # Attempted to create a NULL object. + "--skip=manager::tests::added_target_should_be_spawned" + # Lazy instance has previously been poisoned + "--skip=manager::tests::modified_settings_are_correctly_announced" + "--skip=manager::tests::removed_target_should_be_terminated" + "--skip=manager::tests::unused_unit_should_not_be_spawned" + ]; + + passthru = { + updateScript = nix-update-script { }; + tests.version = testers.testVersion { + package = rotonda; + command = "rotonda --version"; + # tag/release with this version string, please revert to `inherit (finalAttrs) version;` on next release + version = "0.4.3-dev"; + }; + }; meta = { description = "Rotonda - composable, programmable BGP Engine"; homepage = "https://github.com/NLnetLabs/rotonda"; - changelog = "https://github.com/NLnetLabs/rotonda/blob/refs/tags/${src.tag}/Changelog.md"; + changelog = "https://github.com/NLnetLabs/rotonda/blob/refs/tags/${finalAttrs.src.tag}/Changelog.md"; license = lib.licenses.mpl20; maintainers = with lib.maintainers; [ _0x4A6F ]; mainProgram = "rotonda"; }; -} +})