mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
firefox: allow overriding config of wrapped package
By moving the `cfg` variable into the wrapper arguments we are able to override it for an already wrapped package. For example, with this change one can have pkgs.firefox-devedition-bin.override { cfg.enableBrowserpass = true; } which would otherwise be difficult to accomplish for packages having a complicated wrapped definition in `all-packages.nix`.
This commit is contained in:
parent
13b8156030
commit
06d8666a60
1 changed files with 1 additions and 1 deletions
|
@ -28,12 +28,12 @@ let
|
|||
, extraPlugins ? []
|
||||
, extraNativeMessagingHosts ? []
|
||||
, gdkWayland ? false
|
||||
, cfg ? config.${browserName} or {}
|
||||
}:
|
||||
|
||||
assert gdkWayland -> (browser ? gtk3); # Can only use the wayland backend if gtk3 is being used
|
||||
|
||||
let
|
||||
cfg = config.${browserName} or {};
|
||||
enableAdobeFlash = cfg.enableAdobeFlash or false;
|
||||
ffmpegSupport = browser.ffmpegSupport or false;
|
||||
gssSupport = browser.gssSupport or false;
|
||||
|
|
Loading…
Reference in a new issue