brave: set CHROME_WRAPPER to brave

This commit is contained in:
Colin Hooper
2025-06-03 15:05:28 +01:00
parent 2795c506fe
commit af93405bb3
+3 -1
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}}"
''}