···1112rustPlatform.buildRustPackage (finalAttrs: {
13 pname = "holo-daemon";
14- version = "0.7.0";
1516 src = fetchFromGitHub {
17 owner = "holo-routing";
18 repo = "holo";
19 tag = "v${finalAttrs.version}";
20- hash = "sha256-wASY+binAflxaXjKdSfUXS8jgdEHjdIF3AOzjN/a1Fo=";
21 };
2223 passthru.updateScript = nix-update-script { };
2425- cargoHash = "sha256-5X6a86V3Y9+KK0kGbS/ovelqXyLv15gQRFI7GhiYBjY=";
2627 # Use rust nightly features
28 RUSTC_BOOTSTRAP = 1;
···35 buildInputs = [
36 pcre2
37 ];
38-39- # Might not be needed if latest nightly compiler version is used
40- preConfigure = ''
41- # Find all lib.rs and main.rs files and add required unstable features
42- # Add the feature flag at the top of the file if not present`
43- find . -name "lib.rs" -o -name "main.rs" | while read -r file; do
44- for feature in extract_if let_chains hash_extract_if; do
45- if ! grep -q "feature.*$feature" "$file"; then
46- sed -i "1i #![feature($feature)]" "$file"
47- fi
48- done
49- done
50- '';
5152 meta = {
53 description = "`holo` daemon that provides the routing protocols, tools and policies";
···1112rustPlatform.buildRustPackage (finalAttrs: {
13 pname = "holo-daemon";
14+ version = "0.8.0";
1516 src = fetchFromGitHub {
17 owner = "holo-routing";
18 repo = "holo";
19 tag = "v${finalAttrs.version}";
20+ hash = "sha256-8cScq/6e9u3rDilnjT6mAbEudXybNj3YUicYiEgoCyE=";
21 };
2223 passthru.updateScript = nix-update-script { };
2425+ cargoHash = "sha256-YZ2c6W6CCqgyN+6i7Vh5fWLKw8L4pUqvq/tDO/Q/kf0=";
2627 # Use rust nightly features
28 RUSTC_BOOTSTRAP = 1;
···35 buildInputs = [
36 pcre2
37 ];
00000000000003839 meta = {
40 description = "`holo` daemon that provides the routing protocols, tools and policies";