diff --git a/flake.lock b/flake.lock --- a/flake.lock +++ b/flake.lock @@ -16,6 +16,22 @@ "type": "github" } }, + "nixpkgs-grpc-web": { + "locked": { + "lastModified": 1696748673, + "narHash": "sha256-UbPHrH4dKN/66EpfFpoG4St4XZYDX9YcMVRQGWzAUNA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "9957cd48326fe8dbd52fdc50dd2502307f188b0d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "9957cd48326fe8dbd52fdc50dd2502307f188b0d", + "type": "github" + } + }, "nixpkgs-unstable": { "locked": { "lastModified": 1704161960, @@ -35,6 +51,7 @@ "root": { "inputs": { "nixpkgs": "nixpkgs", + "nixpkgs-grpc-web": "nixpkgs-grpc-web", "nixpkgs-unstable": "nixpkgs-unstable", "utils": "utils" } diff --git a/flake.nix b/flake.nix --- a/flake.nix +++ b/flake.nix @@ -4,17 +4,22 @@ inputs = { utils.url = "github:numtide/flake-utils"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + nixpkgs-grpc-web.url = "github:NixOS/nixpkgs/9957cd48326fe8dbd52fdc50dd2502307f188b0d"; # Do not update, used for EOL versions of mariaDB and arcanist+php8.0 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; }; - outputs = { self, nixpkgs, nixpkgs-unstable, utils, ... }: + outputs = { self, nixpkgs, nixpkgs-grpc-web, nixpkgs-unstable, utils, ... }: let # Overlays allow for extending a package set, in this case, we are # extending nixpkgs with our devShell localOverlay = import ./nix/overlay.nix; + grpcWebOverlay = final: prev: { + protoc-gen-grpc-web = nixpkgs-grpc-web.legacyPackages.aarch64-darwin.protoc-gen-grpc-web; + }; overlays = [ localOverlay + grpcWebOverlay (_: _: { commSrc = toString self; } ) ];