New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
obs-studio: wrap QT application to fix xcb plugin abort #65559
Conversation
cc #65399 |
@@ -20,7 +20,7 @@ | |||
, pkgconfig | |||
, vlc | |||
, mbedtls | |||
|
|||
, wrapQtAppsHook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out we probably want to use mkDerivation
from the qt5 set, instead of manually handling the wrapping. See the other comment about that.
(I need a comment to ask for changes :/)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, turns out a lot of the qt applications in nixpkgs aren't packaged correctly at all...
This is all that's needed: diff --git a/pkgs/applications/video/obs-studio/default.nix b/pkgs/applications/video/obs-studio/default.nix
index 0990062bf02..983bdff106e 100644
--- a/pkgs/applications/video/obs-studio/default.nix
+++ b/pkgs/applications/video/obs-studio/default.nix
@@ -1,4 +1,5 @@
{ config, stdenv
+, mkDerivation
, fetchFromGitHub
, cmake
, fdk_aac
@@ -34,7 +35,7 @@
let
optional = stdenv.lib.optional;
-in stdenv.mkDerivation rec {
+in mkDerivation rec {
name = "obs-studio-${version}";
version = "23.2.1";
But? What's that In the case of |
Fixed up! |
Motivation for this change
Not sure if this is the right thing to do these days, but it seemed to fix it up for me.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)