nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7 protobuf,
8 pcre2,
9 nix-update-script,
10}:
11
12rustPlatform.buildRustPackage (finalAttrs: {
13 pname = "holo-daemon";
14 version = "0.8.0";
15
16 src = fetchFromGitHub {
17 owner = "holo-routing";
18 repo = "holo";
19 tag = "v${finalAttrs.version}";
20 hash = "sha256-8cScq/6e9u3rDilnjT6mAbEudXybNj3YUicYiEgoCyE=";
21 };
22
23 passthru.updateScript = nix-update-script { };
24
25 cargoHash = "sha256-YZ2c6W6CCqgyN+6i7Vh5fWLKw8L4pUqvq/tDO/Q/kf0=";
26
27 # Use rust nightly features
28 RUSTC_BOOTSTRAP = 1;
29
30 nativeBuildInputs = [
31 cmake
32 pkg-config
33 protobuf
34 ];
35 buildInputs = [
36 pcre2
37 ];
38
39 meta = {
40 description = "`holo` daemon that provides the routing protocols, tools and policies";
41 homepage = "https://github.com/holo-routing/holo";
42 teams = with lib.teams; [ ngi ];
43 maintainers = with lib.maintainers; [ themadbit ];
44 license = lib.licenses.mit;
45 mainProgram = "holod";
46 platforms = lib.platforms.linux;
47 };
48})