this does not work because chromium.browser is hard-coded in a local scope before the final stdenv.mkDerivation, so it never sees the override.
Solution
Add a browser ? null parameter as input in chromium/default.nix
{ newScope
# ...
, pkgs
, browser ? null
}:
let
# Instead of unconditionally pulling chromium.browser from below,
# pick the "browser" we were passed if non-null, or use the default.
chromium = rec {
browser = if browser != null
then browser
else callPackage ./browser.nix {
inherit ungoogled enableWideVine ...;
};
};
Please let me know if I'm missing an existing way to patch the browser.
The problem
At the moment we cannot patch chromium, e.g. with something like
this does not work because
chromium.browser
is hard-coded in a local scope before the finalstdenv.mkDerivation
, so it never sees the override.Solution
Add a
browser ? null
parameter as input in chromium/default.nixPlease let me know if I'm missing an existing way to patch the browser.
Thanks!
cc @networkException @emilylange