21 stdenv.mkDerivation rec {
23 version = "10.120.10-2";
26 url = "https://download.wavebox.app/stable/linux/tar/Wavebox_${version}.tar.gz";
27 sha256 = "sha256-9kA3nJUNlNHbWYkIy0iEnWCrmIYTjULdMAGGnO4JCkg=";
30 # don't remove runtime deps
32 # ignore optional Qt 6 shim
33 autoPatchelfIgnoreMissingDeps = [ "libQt6Widgets.so.6" "libQt6Gui.so.6" "libQt6Core.so.6" ];
35 nativeBuildInputs = [ autoPatchelfHook makeWrapper qt5.wrapQtAppsHook copyDesktopItems ];
37 buildInputs = with xorg; [
53 runtimeDependencies = [ (lib.getLib udev) libnotify gtk4 ];
56 (makeDesktopItem rec {
62 categories = [ "Network" "WebBrowser" ];
69 mkdir -p $out/bin $out/opt/wavebox
70 cp -r * $out/opt/wavebox
72 # provide icon for desktop item
73 mkdir -p $out/share/icons/hicolor/128x128/apps
74 ln -s $out/opt/wavebox/product_logo_128.png $out/share/icons/hicolor/128x128/apps/wavebox.png
80 makeWrapper $out/opt/wavebox/wavebox-launcher $out/bin/wavebox \
81 --prefix PATH : ${xdg-utils}/bin
84 passthru.updateScript = ./update.sh;
87 description = "Wavebox messaging application";
88 homepage = "https://wavebox.io";
89 license = licenses.mpl20;
90 maintainers = with maintainers; [ rawkode ];
91 platforms = [ "x86_64-linux" ];