holo-daemon: 0.7.0 -> 0.8.0

This commit is contained in:
themadbit 2025-07-15 12:06:33 +03:00
parent f1cacb1b00
commit d59559f59e

View File

@ -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";