Skip to content

Commit b37c2c5

Browse files
committed
[nix] Revert protoc-gen-grpc-web to 1.4.2 using overlay
Summary: This creates an overlay with the last nixpkgs revision `9957cd48326fe8dbd52fdc50dd2502307f188b0d` to have grpc-web version 1.4.2 and replaces the dev-shell installation which uses the latest nixpkgs-unstable grpc-web package. Test Plan: Successfully ran nix develop and it installed 1.4.2 properly Reviewers: varun, bartek Reviewed By: varun Subscribers: ashoat, tomek Differential Revision: https://phab.comm.dev/D10739
1 parent 53cc9c7 commit b37c2c5

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

flake.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,22 @@
44
inputs = {
55
utils.url = "github:numtide/flake-utils";
66
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
7+
nixpkgs-grpc-web.url = "github:NixOS/nixpkgs/9957cd48326fe8dbd52fdc50dd2502307f188b0d";
78
# Do not update, used for EOL versions of mariaDB and arcanist+php8.0
89
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
910
};
1011

11-
outputs = { self, nixpkgs, nixpkgs-unstable, utils, ... }:
12+
outputs = { self, nixpkgs, nixpkgs-grpc-web, nixpkgs-unstable, utils, ... }:
1213
let
1314
# Overlays allow for extending a package set, in this case, we are
1415
# extending nixpkgs with our devShell
1516
localOverlay = import ./nix/overlay.nix;
17+
grpcWebOverlay = final: prev: {
18+
protoc-gen-grpc-web = nixpkgs-grpc-web.legacyPackages.aarch64-darwin.protoc-gen-grpc-web;
19+
};
1620
overlays = [
1721
localOverlay
22+
grpcWebOverlay
1823
(_: _: { commSrc = toString self; } )
1924
];
2025

0 commit comments

Comments
 (0)