Skip to content

Commit

Permalink
update flake nix to use rain.subgraph_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
NanezX committed Nov 20, 2023
1 parent 7c1e668 commit 4ea3d25
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 3 deletions.
105 changes: 104 additions & 1 deletion subgraph/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions subgraph/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/ec750fd01963ab6b20ee1f0cb488754e8036d89d";
flake-utils.url = "github:numtide/flake-utils";
rain.url = "github:rainprotocol/rain.cli/9f5d4bf65bee767f80871d9952665c654b01bdfb";

};


outputs = { self, nixpkgs, flake-utils }:
outputs = { self, nixpkgs, rain, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
jq = "${pkgs.jq}/bin/jq";
rain-cli = "${rain.defaultPackage.${system}}/bin/rain";

in rec {
packages = rec {
Expand Down Expand Up @@ -40,7 +43,11 @@
+ (remove-duplicate-component)
);

default = init-setup;
rain_cli = pkgs.writeShellScriptBin "rain_cli" (''
${rain-cli} $@
'');

default = rain_cli;
};
}
);
Expand Down

0 comments on commit 4ea3d25

Please sign in to comment.