mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
Merge pull request #152697 from blitz/obs-studio-27.2
This commit is contained in:
commit
70426f5f8c
@ -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,8 +34,10 @@
|
||||
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux
|
||||
, libpulseaudio
|
||||
, libcef
|
||||
, pciutils
|
||||
, pipewireSupport ? stdenv.isLinux
|
||||
, pipewire
|
||||
, libdrm
|
||||
}:
|
||||
|
||||
let
|
||||
@ -44,22 +46,19 @@ let
|
||||
in
|
||||
mkDerivation rec {
|
||||
pname = "obs-studio";
|
||||
version = "27.0.1";
|
||||
version = "27.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "obsproject";
|
||||
repo = "obs-studio";
|
||||
rev = version;
|
||||
sha256 = "04fzsr9yizmxy0r7z2706crvnsnybpnv5kgfn77znknxxjacfhkn";
|
||||
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 = [
|
||||
@ -89,11 +88,12 @@ mkDerivation rec {
|
||||
x264
|
||||
libvlc
|
||||
mbedtls
|
||||
pciutils
|
||||
]
|
||||
++ optionals scriptingSupport [ luajit python3 ]
|
||||
++ optional alsaSupport alsa-lib
|
||||
++ optional pulseaudioSupport libpulseaudio
|
||||
++ optional pipewireSupport pipewire;
|
||||
++ optionals pipewireSupport [ pipewire libdrm ];
|
||||
|
||||
# Copied from the obs-linuxbrowser
|
||||
postUnpack = ''
|
||||
|
@ -4,24 +4,48 @@
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, qtbase
|
||||
, qtsvg
|
||||
, obs-studio
|
||||
, asio_1_10
|
||||
, websocketpp
|
||||
, nlohmann_json
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "obs-websocket";
|
||||
version = "4.9.1";
|
||||
|
||||
# We have updated to the alpha version when OBS Studio 27.2 was
|
||||
# released, because this is the only version of obs-websocket that
|
||||
# builds against the new OBS Studio.
|
||||
version = "5.0.0-alpha3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Palakis";
|
||||
repo = "obs-websocket";
|
||||
rev = version;
|
||||
sha256 = "sha256-XCiSNWTiA/u+3IbYlhIc5bCjKjLHDRVjYIG5MEoYnr0=";
|
||||
sha256 = "Lr6SBj5rRTAWmn9Tnlu4Sl7SAkOCRCTP6sFWSp4xB+I=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
patches = [
|
||||
# This patch can be dropped when obs-websocket is updated to the
|
||||
# next version.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/obsproject/obs-websocket/commit/13c7b83c34eb67b2ee80af05071d81f10d0d2997.patch";
|
||||
sha256 = "TNap/T8+058vhfWzRRr4vmlblFk9tHMUNyG6Ob5PwiM=";
|
||||
name = "obs-addref-werror-fix.patch";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ qtbase obs-studio asio_1_10 websocketpp ];
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtsvg
|
||||
obs-studio
|
||||
asio_1_10
|
||||
websocketpp
|
||||
nlohmann_json
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
|
@ -59,17 +59,17 @@ let
|
||||
"aarch64-linux" = {
|
||||
platformStr = "linuxarm64";
|
||||
projectArch = "arm64";
|
||||
sha256 = "1j93qawh9h6k2ic70i10npppv5f9dch961lc1wxwsi68daq8r081";
|
||||
sha256 = "01ny1k10dklsqrrqmxqd9433413wmpk4ddsmkjp9dzv52dvpcl08";
|
||||
};
|
||||
"i686-linux" = {
|
||||
platformStr = "linux32";
|
||||
projectArch = "x86";
|
||||
sha256 = "0ki4zr8ih06kirgbpxbinv4baw3qvacx208q6qy1cvpfh6ll4fwb";
|
||||
sha256 = "000j6pc336c43xczl1rs5zf8nsf17y76f1kpy14gqgpwyzl8my0w";
|
||||
};
|
||||
"x86_64-linux" = {
|
||||
platformStr = "linux64";
|
||||
projectArch = "x86_64";
|
||||
sha256 = "1ja711x9fdlf21qw1k9xn3lvjc5zsfgnjga1w1r8sysam73jk7xj";
|
||||
sha256 = "1ydjckld89dkpy5zrvk7jjpz70mnlmbm8yinkfpzgcwbkcakk6k7";
|
||||
};
|
||||
};
|
||||
|
||||
@ -77,9 +77,9 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cef-binary";
|
||||
version = "90.6.7";
|
||||
gitRevision = "19ba721";
|
||||
chromiumVersion = "90.0.4430.212";
|
||||
version = "96.0.18";
|
||||
gitRevision = "fe551e4";
|
||||
chromiumVersion = "96.0.4664.110";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cef-builds.spotifycdn.com/cef_binary_${version}+g${gitRevision}+chromium-${chromiumVersion}_${platformInfo.platformStr}_minimal.tar.bz2";
|
||||
|
Loading…
Reference in New Issue
Block a user