From 1f829662218dd4aa567c6f214ccfd8f8ba44aba2 Mon Sep 17 00:00:00 2001 From: Ben Luelo Date: Thu, 28 Sep 2023 14:43:22 -0400 Subject: [PATCH] feat: build voyager for minimal and mainnet --- voyager/voyager.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/voyager/voyager.nix b/voyager/voyager.nix index ee5657bfd9..6896902f43 100644 --- a/voyager/voyager.nix +++ b/voyager/voyager.nix @@ -1,13 +1,19 @@ { ... }: { perSystem = { self', pkgs, system, config, crane, stdenv, ... }: let - voyagerAll = (crane.buildWorkspaceMember { + mkVoyager = features: pnameSuffix: (crane.buildWorkspaceMember { + inherit pnameSuffix; crateDirFromRoot = "voyager"; + cargoBuildExtraArgs = features; additionalTestSrcFilter = path: _: (pkgs.lib.hasPrefix "hubble/src/graphql" path); }); + + voyagerMainnet = (mkVoyager "--features eth-mainnet" "-mainnet"); + voyagerMinimal = (mkVoyager "" "-minimal"); in { - inherit (voyagerAll) packages checks; + packages = pkgs.lib.recursiveUpdate voyagerMainnet.packages voyagerMinimal.packages; + checks = pkgs.lib.recursiveUpdate voyagerMainnet.checks voyagerMinimal.checks; }; }