28 lines
667 B
Nix
28 lines
667 B
Nix
{ nixosConfig, pkgs, ... }:
|
|
|
|
# requires patched qt, see https://github.com/obsproject/obs-studio/issues/4295
|
|
|
|
let
|
|
patchedQt = pkgs.qt5.overrideScope' (
|
|
selfqt: superqt: {
|
|
qtwayland = (
|
|
(pkgs.qt5.qtwayland.overrideAttrs (o: o // {
|
|
patches = o.patches ++ [
|
|
./qtwayland-PATCH-Fix-surfaces-updating-without-a-frame-callback.patch
|
|
];
|
|
}))
|
|
);
|
|
}
|
|
);
|
|
in
|
|
{
|
|
programs.obs-studio = {
|
|
enable = nixosConfig.myConfig.gui.enable;
|
|
plugins = with pkgs; [
|
|
obs-studio-plugins.wlrobs
|
|
];
|
|
package = (pkgs.obs-studio.overrideAttrs (oldAttrs: rec {
|
|
qtbase = patchedQt.qtbase;
|
|
}));
|
|
};
|
|
}
|