-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Nix development shell to regen api.proto.
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
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
]; | ||
}; | ||
}); | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.