From d59559f59e4eff542ae2942d1f852534968ec67a Mon Sep 17 00:00:00 2001 From: themadbit Date: Tue, 15 Jul 2025 12:06:33 +0300 Subject: [PATCH] holo-daemon: 0.7.0 -> 0.8.0 --- pkgs/by-name/ho/holo-daemon/package.nix | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/ho/holo-daemon/package.nix b/pkgs/by-name/ho/holo-daemon/package.nix index c704a02c5e59..c71f737c54f8 100644 --- a/pkgs/by-name/ho/holo-daemon/package.nix +++ b/pkgs/by-name/ho/holo-daemon/package.nix @@ -11,18 +11,18 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "holo-daemon"; - version = "0.7.0"; + version = "0.8.0"; src = fetchFromGitHub { owner = "holo-routing"; repo = "holo"; tag = "v${finalAttrs.version}"; - hash = "sha256-wASY+binAflxaXjKdSfUXS8jgdEHjdIF3AOzjN/a1Fo="; + hash = "sha256-8cScq/6e9u3rDilnjT6mAbEudXybNj3YUicYiEgoCyE="; }; passthru.updateScript = nix-update-script { }; - cargoHash = "sha256-5X6a86V3Y9+KK0kGbS/ovelqXyLv15gQRFI7GhiYBjY="; + cargoHash = "sha256-YZ2c6W6CCqgyN+6i7Vh5fWLKw8L4pUqvq/tDO/Q/kf0="; # Use rust nightly features RUSTC_BOOTSTRAP = 1; @@ -36,19 +36,6 @@ rustPlatform.buildRustPackage (finalAttrs: { pcre2 ]; - # Might not be needed if latest nightly compiler version is used - preConfigure = '' - # Find all lib.rs and main.rs files and add required unstable features - # Add the feature flag at the top of the file if not present` - find . -name "lib.rs" -o -name "main.rs" | while read -r file; do - for feature in extract_if let_chains hash_extract_if; do - if ! grep -q "feature.*$feature" "$file"; then - sed -i "1i #![feature($feature)]" "$file" - fi - done - done - ''; - meta = { description = "`holo` daemon that provides the routing protocols, tools and policies"; homepage = "https://github.com/holo-routing/holo";