Overlay google-chrome without speechd

i want delete speechd dependency from google-chrome package.
how to do that with ~/.config/nixpkgs/overlays?

it works.
but i dont know, is it the right way?


self: super: 
	google-chrome = super.google-chrome.override (prev: rec{
		speechd = "";

Are you sure it’s working? That’s freaking weird, wonder how.

I’d have expected you would need to do some string manipulation on the rpath and binpath attributes, since the deps are hidden in a let binding so hard to override.

yes it is works. my google-chrome not download speechd when installing.
it is not override variable deps but manipulate speechd package as empty :grinning:
my google-chrome running normaly.