chromium: Drop useVaapi (was deprecated)
This commit is contained in:
parent
a90362c888
commit
7c700c9ff6
1 changed files with 1 additions and 9 deletions
|
@ -14,7 +14,6 @@
|
||||||
, proprietaryCodecs ? true
|
, proprietaryCodecs ? true
|
||||||
, enablePepperFlash ? false
|
, enablePepperFlash ? false
|
||||||
, enableWideVine ? false
|
, enableWideVine ? false
|
||||||
, useVaapi ? false # Deprecated, use enableVaapi instead!
|
|
||||||
, enableVaapi ? false # Disabled by default due to unofficial support
|
, enableVaapi ? false # Disabled by default due to unofficial support
|
||||||
, useOzone ? false
|
, useOzone ? false
|
||||||
, cupsSupport ? true
|
, cupsSupport ? true
|
||||||
|
@ -148,13 +147,6 @@ let
|
||||||
''
|
''
|
||||||
else browser;
|
else browser;
|
||||||
|
|
||||||
optionalVaapiFlags = if useVaapi # TODO: Remove after 20.09:
|
|
||||||
then throw ''
|
|
||||||
Chromium's useVaapi was replaced by enableVaapi and you don't need to pass
|
|
||||||
"--ignore-gpu-blacklist" anymore (also no rebuilds are required anymore).
|
|
||||||
'' else lib.optionalString
|
|
||||||
(enableVaapi)
|
|
||||||
"--add-flags --enable-accelerated-video-decode";
|
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
name = "chromium${suffix}-${version}";
|
name = "chromium${suffix}-${version}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
@ -181,7 +173,7 @@ in stdenv.mkDerivation {
|
||||||
|
|
||||||
eval makeWrapper "${browserBinary}" "$out/bin/chromium" \
|
eval makeWrapper "${browserBinary}" "$out/bin/chromium" \
|
||||||
--add-flags ${escapeShellArg (escapeShellArg commandLineArgs)} \
|
--add-flags ${escapeShellArg (escapeShellArg commandLineArgs)} \
|
||||||
${optionalVaapiFlags} \
|
${lib.optionalString enableVaapi "--add-flags --enable-accelerated-video-decode"} \
|
||||||
${concatMapStringsSep " " getWrapperFlags chromium.plugins.enabled}
|
${concatMapStringsSep " " getWrapperFlags chromium.plugins.enabled}
|
||||||
|
|
||||||
ed -v -s "$out/bin/chromium" << EOF
|
ed -v -s "$out/bin/chromium" << EOF
|
||||||
|
|
Loading…
Reference in a new issue