holo-daemon: 0.7.0 -> 0.8.0

themadbit d59559f5 f1cacb1b

+3 -16
+3 -16
pkgs/by-name/ho/holo-daemon/package.nix
··· 11 11 12 12 rustPlatform.buildRustPackage (finalAttrs: { 13 13 pname = "holo-daemon"; 14 - version = "0.7.0"; 14 + version = "0.8.0"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = "holo-routing"; 18 18 repo = "holo"; 19 19 tag = "v${finalAttrs.version}"; 20 - hash = "sha256-wASY+binAflxaXjKdSfUXS8jgdEHjdIF3AOzjN/a1Fo="; 20 + hash = "sha256-8cScq/6e9u3rDilnjT6mAbEudXybNj3YUicYiEgoCyE="; 21 21 }; 22 22 23 23 passthru.updateScript = nix-update-script { }; 24 24 25 - cargoHash = "sha256-5X6a86V3Y9+KK0kGbS/ovelqXyLv15gQRFI7GhiYBjY="; 25 + cargoHash = "sha256-YZ2c6W6CCqgyN+6i7Vh5fWLKw8L4pUqvq/tDO/Q/kf0="; 26 26 27 27 # Use rust nightly features 28 28 RUSTC_BOOTSTRAP = 1; ··· 35 35 buildInputs = [ 36 36 pcre2 37 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 - ''; 51 38 52 39 meta = { 53 40 description = "`holo` daemon that provides the routing protocols, tools and policies";