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
commit 3e4a55c04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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