Skip to content

Commit

Permalink
Add Nix development shell to regen api.proto.
Browse files Browse the repository at this point in the history
To use, run `nix develop` to enter a nested shell with protoc, run
regen.sh, and then exit the shell.

Requires Nix's flake features to be enabled.

Files have been regenerated with a slightly more recent protobuffers
version, but no functional change.
  • Loading branch information
jrick committed Nov 12, 2024
1 parent ccd2402 commit 2e8bb31
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
26 changes: 26 additions & 0 deletions flake.lock

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

27 changes: 27 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};

outputs = { self, nixpkgs, ... }@inputs:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = fn:
nixpkgs.lib.genAttrs supportedSystems
(system: fn { pkgs = import nixpkgs { inherit system; }; });
in {
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go_1_23
protobuf
];
};
});
};
}
2 changes: 1 addition & 1 deletion rpc/walletrpc/api.pb.go

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

2 changes: 1 addition & 1 deletion rpc/walletrpc/api_grpc.pb.go

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

0 comments on commit 2e8bb31

Please sign in to comment.