diff --git a/pkgs/by-name/br/brave/make-brave.nix b/pkgs/by-name/br/brave/make-brave.nix index 50bd224484ef..a743bfbe0f8b 100644 --- a/pkgs/by-name/br/brave/make-brave.nix +++ b/pkgs/by-name/br/brave/make-brave.nix @@ -205,7 +205,7 @@ stdenv.mkDerivation { # Fix path to bash in $BINARYWRAPPER substituteInPlace $BINARYWRAPPER \ - --replace /bin/bash ${stdenv.shell} \ + --replace-fail /bin/bash ${stdenv.shell} \ --replace-fail 'CHROME_WRAPPER' 'WRAPPER' ln -sf $BINARYWRAPPER $out/bin/brave @@ -218,13 +218,13 @@ stdenv.mkDerivation { # Fix paths substituteInPlace $out/share/applications/{brave-browser,com.brave.Browser}.desktop \ - --replace /usr/bin/brave-browser-stable $out/bin/brave + --replace-fail /usr/bin/brave-browser-stable $out/bin/brave substituteInPlace $out/share/gnome-control-center/default-apps/brave-browser.xml \ - --replace /opt/brave.com $out/opt/brave.com + --replace-fail /opt/brave.com $out/opt/brave.com substituteInPlace $out/share/menu/brave-browser.menu \ - --replace /opt/brave.com $out/opt/brave.com + --replace-fail /opt/brave.com $out/opt/brave.com substituteInPlace $out/opt/brave.com/brave/default-app-block \ - --replace /opt/brave.com $out/opt/brave.com + --replace-fail /opt/brave.com $out/opt/brave.com # Correct icons location icon_sizes=("16" "24" "32" "48" "64" "128" "256")