Change:
<ins> { lib, stdenv, fetchurl, autoPatchelfHook, dpkg, wrapGAppsHook, alsa-lib, at-spi2-atk, at-spi2-core, cairo, cups, curl, dbus, expat, ffmpeg, fontconfig, freetype, glib, glibc, gtk3, gtk4, libcanberra, liberation_ttf, libexif, libglvnd, libkrb5, libnotify, libpulseaudio, libu2f-host, libva, libxkbcommon, mesa, nspr, nss, pango, pciutils, pipewire, qt6, speechd, systemd, udev, _7zz, vaapiVdpau, vulkan-loader, wayland, wget, xdg-utils, xfce, xorg, }: stdenv.mkDerivation rec { pname = "thorium-browser"; version = "120.0.6099.235"; src = fetchurl { url = "https://github.com/Alex313031/thorium/releases/download/M${version}/thorium-browser_${version}_amd64.deb"; hash = "sha256-UQqYXlkjXuZ3Vkcie0SNp4AMnBjemavW2G7dKGTxVAc="; }; nativeBuildInputs = [ autoPatchelfHook dpkg wrapGAppsHook qt6.wrapQtAppsHook ]; buildInputs = [ stdenv.cc.cc.lib alsa-lib at-spi2-atk at-spi2-core cairo cups curl dbus expat ffmpeg fontconfig freetype glib glibc gtk3 gtk4 libcanberra liberation_ttf libexif libglvnd libkrb5 libnotify libpulseaudio libu2f-host libva libxkbcommon mesa nspr nss qt6.qtbase pango pciutils pipewire speechd udev _7zz vaapiVdpau vulkan-loader wayland wget xdg-utils xfce.exo xorg.libxcb xorg.libX11 xorg.libXcursor xorg.libXcomposite xorg.libXdamage xorg.libXext xorg.libXfixes xorg.libXi xorg.libXrandr xorg.libXrender xorg.libXtst xorg.libXxf86vm ]; # Needed to make the process get past zygote_linux fork()'ing runtimeDependencies = [ systemd ]; autoPatchelfIgnoreMissingDeps = [ "libQt5Widgets.so.5" "libQt5Gui.so.5" "libQt5Core.so.5" ]; installPhase = '' runHook preInstall mkdir -p $out cp -vr usr/* $out cp -vr etc $out cp -vr opt $out ln -sf $out/opt/chromium.org/thorium/thorium-browser $out/bin/thorium-browser substituteInPlace $out/share/applications/thorium-shell.desktop  --replace /usr/bin $out/bin  --replace /opt $out/opt substituteInPlace $out/share/applications/thorium-browser.desktop  --replace /usr/bin $out/bin  --replace StartupWMClass=thorium StartupWMClass=thorium-browser  --replace Icon=thorium-browser Icon=$out/opt/chromium.org/thorium/product_logo_256.png addAutoPatchelfSearchPath $out/chromium.org/thorium addAutoPatchelfSearchPath $out/chromium.org/thorium/lib substituteInPlace $out/opt/chromium.org/thorium/thorium-browser  --replace 'export LD_LIBRARY_PATH' "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${lib.makeLibraryPath buildInputs}:$out/chromium.org/thorium:$out/chromium.org/thorium/lib" makeWrapper "$out/opt/chromium.org/thorium/thorium-browser" "$out/bin/thorium-browser"  --add-flags "''${NIXOS_OZONE_WL:+''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" runHook postInstall ''; postPatchMkspecs = '' substituteInPlace $out/bin/..thorium-shell-wrapped-wrapped  --replace /opt $out/opt ''; meta = with lib; { description = "Compiler-optimized Chromium fork"; homepage = "https://thorium.rocks"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; maintainers = with maintainers; [ rgri ]; license = licenses.bsd3; platforms = ["x86_64-linux"]; mainProgram = "thorium-browser"; }; } </ins>

Discussion:
Project description Chromium fork with performance & privacy benefits. Metadata homepage URL: source URL: license: GPL-3.0 platforms: Linux, Darwin
I wanted to try Thorium out of curiosity and built this: <details</summary</detailsBut I decided I wasn't going to use it, so I'll leave this here in case it's helpful to anyone. It seems to work just fine, but I haven't tested it very much.
What is with this?
that is not it, we need thorium in nixos, i suppose this is browser of choice for many users specially, it is not filled with unnecessary bullshitery like brave and has chome store support and widevine cdm (unlike ungoogled chromium)
Would definitely also like to give the thorium browser a whirl, as there is currently no easy way to use Google Chrome Sync for ARM based Linux.
PR
any update on this PR? popular browser. seems to have stalled
I have been using definition for a few months without any issue but since he has archived it and the version is out of date here is the same but
Thorium was removed again due to the mentioned comment. Unless things change upstream, we won't consider packaging Thorium in nixpkgs.