I need Chrome with the version required by chromedriver
What is the easiest way to get Chrome with pinned version (version = 85) ?
I need Chrome with the version required by chromedriver
What is the easiest way to get Chrome with pinned version (version = 85) ?
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:
https://github.com/NixOS/nixpkgs/commits/master/pkgs/applications/networking/browsers/chromium
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 = chromePkgs.google-chrome;
}
pkgs = import <nixpkgs> { overlays = [ overlay ]; };