Merge pull request #136591 from polykernel/brave-add-cmdline-args

This commit is contained in:
Maciej Krüger
2021-11-02 10:02:32 +01:00
committed by GitHub
@@ -42,6 +42,7 @@
, zlib
, xdg-utils
, wrapGAppsHook
, commandLineArgs ? ""
}:
let
@@ -158,6 +159,11 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
preFixup = ''
# Add command line args to wrapGApp.
gappsWrapperArgs+=(--add-flags ${lib.escapeShellArg commandLineArgs})
'';
installCheckPhase = ''
# Bypass upstream wrapper which suppresses errors
$out/opt/brave.com/brave/brave --version