diff --git a/subgraph/flake.lock b/subgraph/flake.lock index 5b20c3e4b..fb4c76b54 100644 --- a/subgraph/flake.lock +++ b/subgraph/flake.lock @@ -18,6 +18,42 @@ "type": "github" } }, + "flake-utils_2": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1687171271, + "narHash": "sha256-BJlq+ozK2B1sJDQXS3tzJM5a+oVZmi1q0FlBK/Xqv7M=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "abfb11bd1aec8ced1c9bb9adfe68018230f4fb3c", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "naersk": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1686572087, + "narHash": "sha256-jXTut7ZSYqLEgm/nTk7TuVL2ExahTip605bLINklAnQ=", + "owner": "nix-community", + "repo": "naersk", + "rev": "8507af04eb40c5520bd35d9ce6f9d2342cea5ad1", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "naersk", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1699343069, @@ -34,10 +70,62 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1687518131, + "narHash": "sha256-KirltRIc4SFfk8bTNudIqgKAALH5oqpW3PefmkfWK5M=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "3d8a93602bc54ece7a4e689d9aea1a574e2bbc24", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1687518131, + "narHash": "sha256-KirltRIc4SFfk8bTNudIqgKAALH5oqpW3PefmkfWK5M=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "3d8a93602bc54ece7a4e689d9aea1a574e2bbc24", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "rain": { + "inputs": { + "flake-utils": "flake-utils_2", + "naersk": "naersk", + "nixpkgs": "nixpkgs_3" + }, + "locked": { + "lastModified": 1700466095, + "narHash": "sha256-TBP0t5U4KxgDCEbn7PFkGaAjEjrlOHsduX+nAQ02wP0=", + "owner": "rainprotocol", + "repo": "rain.cli", + "rev": "9f5d4bf65bee767f80871d9952665c654b01bdfb", + "type": "github" + }, + "original": { + "owner": "rainprotocol", + "repo": "rain.cli", + "rev": "9f5d4bf65bee767f80871d9952665c654b01bdfb", + "type": "github" + } + }, "root": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs", + "rain": "rain" } }, "systems": { @@ -54,6 +142,21 @@ "repo": "default", "type": "github" } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/subgraph/flake.nix b/subgraph/flake.nix index 4284c113e..42e8ffb02 100644 --- a/subgraph/flake.nix +++ b/subgraph/flake.nix @@ -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 { @@ -40,7 +43,11 @@ + (remove-duplicate-component) ); - default = init-setup; + rain_cli = pkgs.writeShellScriptBin "rain_cli" ('' + ${rain-cli} $@ + ''); + + default = rain_cli; }; } );