, wrapGAppsHook }: <del> let rpath = lib.makeLibraryPath [ alsaLib at-spi2-atk at-spi2-core atk cairo cups dbus expat fontconfig freetype gdk_pixbuf glib gnome2.GConf gtk3 libX11 libXScrnSaver libXcomposite libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXtst libuuid nspr nss pango udev xdg_utils xorg.libxcb zlib </del> <ins> let rpath = lib.makeLibraryPath [ alsaLib at-spi2-atk at-spi2-core atk cairo cups dbus expat fontconfig freetype gdk_pixbuf glib gnome2.GConf gtk3 libX11 libXScrnSaver libXcomposite libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXtst libuuid nspr nss pango udev xdg_utils xorg.libxcb zlib </ins> ]; <ins> in </ins> <del> in stdenv.mkDerivation rec { pname = "brave"; version = "0.61.50"; </del> <ins> stdenv.mkDerivation rec { pname = "brave"; version = "0.65.118"; </ins> <del> src = fetchurl { url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb"; sha256 = "1lbajxnxqkd422rckfjm65pwwzl66v7anq4jrzxi29d5x7abl3c1"; }; </del> <ins> src = fetchurl { url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb"; sha256 = "13bihzf4yfgn01nrw780swhmcdh8gq71jqilhbi04jn1h1pbm3wg"; }; </ins> <del> dontConfigure = true; dontBuild = true; dontPatchELF = true; </del> <ins> dontConfigure = true; dontBuild = true; dontPatchELF = true; </ins> <del> nativeBuildInputs = [ dpkg wrapGAppsHook ]; </del> <ins> nativeBuildInputs = [ dpkg wrapGAppsHook ]; </ins> <del> buildInputs = [ glib gnome3.gsettings_desktop_schemas gnome3.adwaita-icon-theme ]; </del> <ins> buildInputs = [ glib gsettings-desktop-schemas gnome3.adwaita-icon-theme ]; </ins> <del> unpackPhase = "dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner"; </del> <ins> unpackPhase = "dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner"; </ins> <del> installPhase = '' mkdir -p $out $out/bin </del> <ins> installPhase = '' mkdir -p $out $out/bin </ins> <del> cp -R usr/share $out cp -R opt/ $out/opt </del> <ins> cp -R usr/share $out cp -R opt/ $out/opt </ins> <del> export BINARYWRAPPER=$out/opt/brave.com/brave/brave-browser </del> <ins> export BINARYWRAPPER=$out/opt/brave.com/brave/brave-browser </ins> <del> # Fix path to bash in $BINARYWRAPPER substituteInPlace $BINARYWRAPPER  --replace /bin/bash ${stdenv.shell} </del> <ins> # Fix path to bash in $BINARYWRAPPER substituteInPlace $BINARYWRAPPER  --replace /bin/bash ${stdenv.shell} </ins> <del> ln -sf $BINARYWRAPPER $out/bin/brave </del> <ins> ln -sf $BINARYWRAPPER $out/bin/brave </ins> <del> patchelf  --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)"  --set-rpath "${rpath}" $out/opt/brave.com/brave/brave </del> <ins> patchelf  --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)"  --set-rpath "${rpath}" $out/opt/brave.com/brave/brave </ins> <del> # Fix paths substituteInPlace $out/share/applications/brave-browser.desktop  --replace /usr/bin/brave-browser $out/bin/brave substituteInPlace $out/share/gnome-control-center/default-apps/brave-browser.xml  --replace /opt/brave.com $out/opt/brave.com substituteInPlace $out/share/menu/brave-browser.menu  --replace /opt/brave.com $out/opt/brave.com substituteInPlace $out/opt/brave.com/brave/default-app-block  --replace /opt/brave.com $out/opt/brave.com </del> <ins> # Fix paths substituteInPlace $out/share/applications/brave-browser.desktop  --replace /usr/bin/brave-browser $out/bin/brave substituteInPlace $out/share/gnome-control-center/default-apps/brave-browser.xml  --replace /opt/brave.com $out/opt/brave.com substituteInPlace $out/share/menu/brave-browser.menu  --replace /opt/brave.com $out/opt/brave.com substituteInPlace $out/opt/brave.com/brave/default-app-block  --replace /opt/brave.com $out/opt/brave.com </ins> <del> # Correct icons location icon_sizes=("16" "22" "24" "32" "48" "64" "128" "256") </del> <ins> # Correct icons location icon_sizes=("16" "22" "24" "32" "48" "64" "128" "256") </ins> <del> for icon in ''${icon_sizes[*]} do mkdir -p $out/share/icons/hicolor/$iconx$icon/apps ln -s $out/opt/brave.com/brave/product_logo_$icon.png $out/share/icons/hicolor/$iconx$icon/apps/brave-browser.png done </del> <ins> for icon in ''${icon_sizes[*]} do mkdir -p $out/share/icons/hicolor/$iconx$icon/apps ln -s $out/opt/brave.com/brave/product_logo_$icon.png $out/share/icons/hicolor/$iconx$icon/apps/brave-browser.png done </ins> <del> # Replace xdg-settings and xdg-mime ln -sf ${xdg_utils}/bin/xdg-settings $out/opt/brave.com/brave/xdg-settings ln -sf ${xdg_utils}/bin/xdg-mime $out/opt/brave.com/brave/xdg-mime ''; </del> <ins> # Replace xdg-settings and xdg-mime ln -sf ${xdg_utils}/bin/xdg-settings $out/opt/brave.com/brave/xdg-settings ln -sf ${xdg_utils}/bin/xdg-mime $out/opt/brave.com/brave/xdg-mime ''; </ins> <del> meta = with stdenv.lib; { homepage = "https://brave.com/"; description = "Privacy-oriented browser for Desktop and Laptop computers"; longDescription = '' Brave browser blocks the ads and trackers that slow you down, chew up your bandwidth, and invade your privacy. Brave lets you contribute to your favorite creators automatically. ''; license = licenses.mpl20; maintainers = [ maintainers.uskudnik ]; platforms = [ "x86_64-linux" ]; }; </del> <ins> meta = with stdenv.lib; { homepage = "https://brave.com/"; description = "Privacy-oriented browser for Desktop and Laptop computers"; changelog = "https://github.com/brave/brave-browser/blob/v${version}/CHANGELOG.md"; longDescription = '' Brave browser blocks the ads and trackers that slow you down, chew up your bandwidth, and invade your privacy. Brave lets you contribute to your favorite creators automatically. ''; license = licenses.mpl20; maintainers = [ maintainers.uskudnik ]; platforms = [ "x86_64-linux" ]; }; </ins> }