mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Fix Firefox config option processing
This commit is contained in:
parent
27bd526654
commit
599517668c
@ -7876,20 +7876,21 @@ let
|
||||
inherit stdenv makeWrapper makeDesktopItem browser browserName desktopName nameSuffix icon;
|
||||
plugins =
|
||||
let
|
||||
enableAdobeFlash = config.browserNameenableAdobeFlash or true;
|
||||
enableGnash = config.browserNameenableGnash or false;
|
||||
cfg = stdenv.lib.attrByPath [ browserName ] {} config;
|
||||
enableAdobeFlash = cfg.enableAdobeFlash or true;
|
||||
enableGnash = cfg.enableGnash or false;
|
||||
in
|
||||
assert !(enableGnash && enableAdobeFlash);
|
||||
([ ]
|
||||
++ lib.optional enableGnash gnash
|
||||
++ lib.optional enableAdobeFlash flashplayer
|
||||
# RealPlayer is disabled by default for legal reasons.
|
||||
++ lib.optional (system != "i686-linux" && config.browserNameenableRealPlayer or false) RealPlayer
|
||||
++ lib.optional (config.browserNameenableDjvu or false) (djview4)
|
||||
++ lib.optional (config.browserNameenableMPlayer or false) (MPlayerPlugin browser)
|
||||
++ lib.optional (config.browserNameenableGeckoMediaPlayer or false) gecko_mediaplayer
|
||||
++ lib.optional (supportsJDK && config.browserNamejre or false && jrePlugin ? mozillaPlugin) jrePlugin
|
||||
++ lib.optional (config.browserNameenableGoogleTalkPlugin or false) google_talk_plugin
|
||||
++ lib.optional (system != "i686-linux" && cfg.enableRealPlayer or false) RealPlayer
|
||||
++ lib.optional (cfg.enableDjvu or false) (djview4)
|
||||
++ lib.optional (cfg.enableMPlayer or false) (MPlayerPlugin browser)
|
||||
++ lib.optional (cfg.enableGeckoMediaPlayer or false) gecko_mediaplayer
|
||||
++ lib.optional (supportsJDK && cfg.jre or false && jrePlugin ? mozillaPlugin) jrePlugin
|
||||
++ lib.optional (cfg.eenableGoogleTalkPlugin or false) google_talk_plugin
|
||||
);
|
||||
libs =
|
||||
if config.browserNameenableQuakeLive or false
|
||||
|
Loading…
Reference in New Issue
Block a user