From d8cc35c25ae64964efa1b8a06b9641afa9240480 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 31 Mar 2025 20:03:09 +0200 Subject: [PATCH] add vivaldi --- share/common.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/share/common.nix b/share/common.nix index 4664ff1..2e034c6 100644 --- a/share/common.nix +++ b/share/common.nix @@ -7,6 +7,18 @@ let mgba quicknes ])); + vivaldiBrowser = ((pkgs.vivaldi.overrideAttrs (oldAttrs: { + buildPhase = builtins.replaceStrings + ["for f in libGLESv2.so libqt5_shim.so ; do"] + ["for f in libGLESv2.so libqt6_shim.so ; do"] + oldAttrs.buildPhase; + })).override { + qt5 = pkgs.qt6; + commandLineArgs = [ "--ozone-platform=wayland" ]; + # The following two are just my preference, feel free to leave them out + proprietaryCodecs = true; + enableWidevine = true; + }); in { # @@ -441,6 +453,7 @@ in unzip usbutils valgrind + vivaldiBrowser vlc vscodium vulkan-tools @@ -480,6 +493,11 @@ in executable = "${retroarchWithCores}/bin/retroarch"; profile = "${pkgs.firejail}/etc/firejail/retroarch.profile"; }; + + vivaldi = { + executable = "${pkgs.lib.getBin vivaldiBrowser}/bin/vivaldi"; + profile = "${pkgs.firejail}/etc/firejail/vivaldi.profile"; + }; }; };