brave: set CHROME_WRAPPER to brave (#413874)

This commit is contained in:
Aleksana 2025-06-09 23:25:19 +08:00 committed by GitHub
commit 2d88dff590
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -205,7 +205,8 @@ stdenv.mkDerivation {
# Fix path to bash in $BINARYWRAPPER
substituteInPlace $BINARYWRAPPER \
--replace /bin/bash ${stdenv.shell}
--replace /bin/bash ${stdenv.shell} \
--replace-fail 'CHROME_WRAPPER' 'WRAPPER'
ln -sf $BINARYWRAPPER $out/bin/brave
@ -263,6 +264,7 @@ stdenv.mkDerivation {
coreutils
]
}
--set CHROME_WRAPPER ${pname}
${optionalString (enableFeatures != [ ]) ''
--add-flags "--enable-features=${strings.concatStringsSep "," enableFeatures}\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+,WaylandWindowDecorations --enable-wayland-ime=true}}"
''}