Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1014 B
Nix
49 lines
1014 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
protobuf,
|
|
pcre2,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "holo-daemon";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "holo-routing";
|
|
repo = "holo";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-8cScq/6e9u3rDilnjT6mAbEudXybNj3YUicYiEgoCyE=";
|
|
};
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
cargoHash = "sha256-YZ2c6W6CCqgyN+6i7Vh5fWLKw8L4pUqvq/tDO/Q/kf0=";
|
|
|
|
# Use rust nightly features
|
|
RUSTC_BOOTSTRAP = 1;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
protobuf
|
|
];
|
|
buildInputs = [
|
|
pcre2
|
|
];
|
|
|
|
meta = {
|
|
description = "`holo` daemon that provides the routing protocols, tools and policies";
|
|
homepage = "https://github.com/holo-routing/holo";
|
|
teams = with lib.teams; [ ngi ];
|
|
maintainers = with lib.maintainers; [ themadbit ];
|
|
license = lib.licenses.mit;
|
|
mainProgram = "holod";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|