mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
brave: set CHROME_WRAPPER to brave (#413874)
This commit is contained in:
commit
2d88dff590
1 changed files with 3 additions and 1 deletions
|
@ -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}}"
|
||||
''}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue