chromium: hide `enableWideVine` behind a `broken` flag

ref https://github.com/NixOS/nixpkgs/issues/22333
ref https://github.com/NixOS/nixpkgs/pull/29640

cc @aszlig

+8 -2
+8 -2
pkgs/applications/networking/browsers/chromium/default.nix
··· 117 117 ln -s "$out/bin/chromium" "$out/bin/chromium-browser" 118 118 119 119 mkdir -p "$out/share/applications" 120 - for f in '${chromium.browser}'/share/*; do 120 + for f in '${chromium.browser}'/share/*; do # hello emacs */ 121 121 ln -s -t "$out/share/" "$f" 122 122 done 123 123 cp -v "${desktopItem}/share/applications/"* "$out/share/applications" 124 124 ''; 125 125 126 - inherit (chromium.browser) meta packageName; 126 + inherit (chromium.browser) packageName; 127 + meta = chromium.browser.meta // { 128 + broken = if enableWideVine then 129 + builtins.trace "WARNING: WideVine is not functional, please only use for testing" 130 + true 131 + else false; 132 + }; 127 133 128 134 passthru = { 129 135 inherit (chromium) upstream-info browser;