obs-studio: 27.1.3 -> 27.2.0

main
Julian Stecklina 3 years ago
parent 529e3d74a8
commit 2d7494e53f
  1. 26
      pkgs/applications/video/obs-studio/Change-product_version-to-user_agent_product.patch
  2. 9
      pkgs/applications/video/obs-studio/default.nix

@ -1,26 +0,0 @@
From 635772c4c5ecf11a0f84e6c9fc273dce6b9a5688 Mon Sep 17 00:00:00 2001
From: V <v@anomalous.eu>
Date: Thu, 10 Jun 2021 18:36:22 +0200
Subject: [PATCH] Change product_version to user_agent_product
This is its name as of CEF 91.1.0.
---
obs-browser-plugin.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/obs-browser-plugin.cpp b/obs-browser-plugin.cpp
index 1a6a009..5eb379e 100644
--- a/plugins/obs-browser/obs-browser-plugin.cpp
+++ b/plugins/obs-browser/obs-browser-plugin.cpp
@@ -298,7 +298,7 @@ static void BrowserInit(void)
prod_ver << std::to_string(obs_maj) << "." << std::to_string(obs_min)
<< "." << std::to_string(obs_pat);
- CefString(&settings.product_version) = prod_ver.str();
+ CefString(&settings.user_agent_product) = prod_ver.str();
#ifdef USE_QT_LOOP
settings.external_message_pump = true;
--
2.31.1

@ -34,6 +34,7 @@
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux
, libpulseaudio
, libcef
, pciutils
, pipewireSupport ? stdenv.isLinux
, pipewire
, libdrm
@ -45,22 +46,19 @@ let
in
mkDerivation rec {
pname = "obs-studio";
version = "27.1.3";
version = "27.2.0";
src = fetchFromGitHub {
owner = "obsproject";
repo = "obs-studio";
rev = version;
sha256 = "EmBzxJHai++cvdYBYuR6mQJapSTDvaiqhxGbNnJWsdk=";
sha256 = "KZgwAtyxv2vXDW7vF1eArF5Mqw45NngwChc+5OnXuXg=";
fetchSubmodules = true;
};
patches = [
# Lets obs-browser build against CEF 90.1.0+
./Enable-file-access-and-universal-access-for-file-URL.patch
# Lets obs-browser build against CEF 91.1.0+
# ./Change-product_version-to-user_agent_product.patch
];
nativeBuildInputs = [
@ -90,6 +88,7 @@ mkDerivation rec {
x264
libvlc
mbedtls
pciutils
]
++ optionals scriptingSupport [ luajit python3 ]
++ optional alsaSupport alsa-lib

Loading…
Cancel
Save