Skip to content

Commit

Permalink
feat: build voyager for minimal and mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
benluelo committed Sep 28, 2023
1 parent a7af3b8 commit 1f82966
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions voyager/voyager.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

0 comments on commit 1f82966

Please sign in to comment.