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; }; }