Pin pkg at a certain version : chrome - chromedriver version fit

I need Chrome with the version required by chromedriver

What is the easiest way to get Chrome with pinned version (version = 85) ?

This site may be of use to you.

1 Like

Hello @austin

Thanks, that looks good.
but I can not find “nixos-20.09” ?

To see which nixpkgs revision has the required chrome version, you can check the commit history on github for that specific file which defines the version.
In case of chrome, you need to check the version of chromium, since they share the same source:

Just look for commit messages, similar to: chromium: 87.0.4280.66 -> 87.0.4280.88

Assuming you import this nixpkgs revision as pkgsChrome, you now can pick the chrome package from pkgsChrome and inject it into your current nixpkgs via overlay.

chromePkgs = import (fetchTarball ...);

overlay = curr: prev: {
  google-chrome =;

pkgs = import <nixpkgs> { overlays = [ overlay ]; };

It works but it will get Chromium Dev not Google-Chrome(-stable)

the page is using depreciated nixpkgs-channels instead of nixpkgs

NixDB looks good as well