Proper install Vivaldi on NixOS

Hello, How do i install Vivaldi Browser on nixos? i have tried with unstable branch and it is working, but the problem is it’s laggy too much also giving errors when i run it from a terminal.

(unstable.vivaldi.override {
    proprietaryCodecs = true;
    enableWidevine = true;
  })

Here is the output of the terminal, Well i am using the stable branch and for some packages i use unstable branch, I have seen that vivaldi browser in stable branch is out of date.

➜  ~  vivaldi
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
[0310/174528.972285:ERROR:process_memory_range.cc(75)] read out of range
[41994:41994:0310/174529.638396:ERROR:gpu_process_host.cc(994)] GPU process exited unexpectedly: exit_code=139
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
[0310/174529.747669:ERROR:process_memory_range.cc(75)] read out of range
[41994:41994:0310/174530.297562:ERROR:gpu_process_host.cc(994)] GPU process exited unexpectedly: exit
_code=139
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
[0310/174530.426668:ERROR:process_memory_range.cc(75)] read out of range
[41994:41994:0310/174531.007773:ERROR:gpu_process_host.cc(994)] GPU process exited unexpectedly: exit_code=139
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
[42061:8:0310/174531.116971:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[42095:7:0310/174531.121261:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[42039:42062:0310/174533.993903:ERROR:ssl_client_socket_impl.cc(975)] handshake failed; returned -1, SSL error code 1, net_error -101
Fontconfig error: Cannot load default config file: No such file: (null)
Warning: vkCreateInstance: Found no drivers!
Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
    at CheckVkSuccessImpl (../../chromium/third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:101)
    at CreateVkInstance (../../chromium/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:493)
    at Initialize (../../chromium/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:379)
    at Create (../../chromium/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:301)
    at operator() (../../chromium/third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:556)

[0310/174728.896225:ERROR:process_memory_range.cc(75)] read out of range
[41994:41994:0310/174729.898473:ERROR:gpu_process_host.cc(994)] GPU process exited unexpectedly: exit_code=139
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
DRI driver not from this Mesa build ('23.1.9' vs '24.0.1')
failed to bind extensions
Fontconfig error: Cannot load default config file: No such file: (null)
[41994:41994:0310/180505.753688:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Cannot access contents of url "https://mail.tm/en/view/65eda8f36dc2a8057cbc845f/". Extension manifest must request permission to access this host.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)
[41994:41994:0310/180513.882350:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Cannot access contents of url "https://discourse.nixos.org/top?period=weekly". Extension manifest must request permission to access this host.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)
[41994:41994:0310/180513.882779:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Cannot access contents of url "https://discourse.nixos.org/top?period=weekly". Extension manifest must request permission to access this host.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)
[41994:41994:0310/180708.216227:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: The tab was closed.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)
[41994:41994:0310/180708.216361:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: The tab was closed.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)
[41994:41994:0310/180829.591950:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Cannot access contents of url "https://search.nixos.org/packages?channel=23.11&show=losslesscut-bin&from=0&size=50&sort=relevance&type=packages&query=losslesscut". Extension manifest must request permission to access this host.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)
[41994:41994:0310/180924.319281:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Could not find guest", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)
[41994:41994:0310/180924.319348:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Unknown error.", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)
[41994:41994:0310/180924.319379:ERROR:CONSOLE(0)] "Error handling response: TypeError: Cannot read properties of undefined (reading 'slice')
    at chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js:1:3313158
    at chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js:1:3443302
    at produce (chrome-extension://mpognobbkildjkofajifpdfhcoklimli/vendor-bundle.js:1:1180969)
    at a (chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js:1:3443294)
    at d.reduce (chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js:1:3313102)
    at d.dispatchAction (chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js:1:3384115)
    at Object.dispatch (chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js:1:3224234)
    at Object._updateRewindInfo (chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js:1:71895)
    at chrome-extension://mpognobbkildjkofajifpdfhcoklimli/bundle.js:1:72053", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)
[41994:41994:0310/180924.319418:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Could not find guest", source: chrome-extension://mpognobbkildjkofajifpdfhcoklimli/window.html (0)

As you can see here is some errors about mesa, gpu and more, Is that possible to change the meta version to 24? Also i am not that sure why i am getting the gpu error when it’s just works fine on other browser i’m also on AMD gpu.

Same issue here, but with slightly different version numbers

DRI driver not from this Mesa build ('23.1.9' vs '23.3.5')
failed to bind extensions

Is your vivaldi laggy? please give your output from chrome://gpu. Masa is the problem or what, also getting some weird errors. here is the output, almost everything is disabled idk why tho.

Graphics Feature Status
=======================
*   Canvas: Software only, hardware acceleration unavailable
*   Canvas out-of-process rasterization: Disabled
*   Direct Rendering Display Compositor: Disabled
*   Compositing: Software only. Hardware acceleration disabled
*   Multiple Raster Threads: Enabled
*   OpenGL: Disabled
*   Rasterization: Software only. Hardware acceleration disabled
*   Raw Draw: Disabled
*   Skia Graphite: Disabled
*   Video Decode: Software only. Hardware acceleration disabled
*   Video Encode: Software only. Hardware acceleration disabled
*   Vulkan: Disabled
*   WebGL: Software only, hardware acceleration unavailable
*   WebGL2: Software only, hardware acceleration unavailable
*   WebGPU: Disabled

Problems Detected
=================
*   WebGPU has been disabled via blocklist or the command line.
    Disabled Features: webgpu

*   Accelerated video encode has been disabled, either via blocklist, about:flags or the command line.
    Disabled Features: video_encode

*   Gpu compositing has been disabled, either via blocklist, about:flags or the command line. The browser will fall back to software compositing and hardware acceleration will be unavailable.
    Disabled Features: gpu_compositing

I’ve stumbled over this today

It breaks sddm on my system though - almost everything is release-23.11 but hyprland (and therefore mesa) would be using nixpkgs-unstable.

My plan is to switch to unstable soon, I do prefer rolling release distros. The issue should (hopefully) resolve than.

Had time to re-test. With my whole system running on nixpkgs-unstable the mesa version errors disappeared.

Hmm, I have used the git version of mesa now it’s works.