From 2368f8c0b2c59da96d6048ff6568b5fcfffb3a99 Mon Sep 17 00:00:00 2001 From: Hussein Ait Lahcen Date: Thu, 28 Sep 2023 21:00:41 +0200 Subject: [PATCH] feat(voyager): add sidecar package to nix --- voyager/voyager.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/voyager/voyager.nix b/voyager/voyager.nix index 6896902f43..8f8491ddbe 100644 --- a/voyager/voyager.nix +++ b/voyager/voyager.nix @@ -11,9 +11,16 @@ voyagerMainnet = (mkVoyager "--features eth-mainnet" "-mainnet"); voyagerMinimal = (mkVoyager "" "-minimal"); + + voyagerSidecar = crane.buildWorkspaceMember { + crateDirFromRoot = "lib/voyager-sidecar"; + additionalTestSrcFilter = path: _: + (pkgs.lib.hasPrefix "hubble/src/graphql" path); + }; in { - packages = pkgs.lib.recursiveUpdate voyagerMainnet.packages voyagerMinimal.packages; - checks = pkgs.lib.recursiveUpdate voyagerMainnet.checks voyagerMinimal.checks; + packages = pkgs.lib.recursiveUpdate voyagerMainnet.packages voyagerMinimal.packages // voyagerSidecar.packages; + checks = pkgs.lib.recursiveUpdate voyagerMainnet.checks voyagerMinimal.checks // voyagerSidecar.checks; + }; }