obs-studio: 21.1.2 -> 22.0.2

This commit is contained in:
Franz Pletz 2018-09-23 03:04:04 +02:00
parent a9d0b83bd0
commit e9faf00a90
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
2 changed files with 4 additions and 35 deletions

View File

@ -18,6 +18,7 @@
, makeWrapper
, pkgconfig
, vlc
, mbedtls
, alsaSupport ? false
, alsaLib
@ -29,17 +30,15 @@ let
optional = stdenv.lib.optional;
in stdenv.mkDerivation rec {
name = "obs-studio-${version}";
version = "21.1.2";
version = "22.0.2";
src = fetchFromGitHub {
owner = "jp9000";
repo = "obs-studio";
rev = "${version}";
sha256 = "1gl6qibvckczk3yl44h3yshml6sn3izwn58qpxils5837rpkwlc5";
sha256 = "1bgp2lirpsbp54vvl3p345njlpgv0d78vac2aqwbl34wqx5sqdk0";
};
patches = [ ./find-xcb.patch ];
nativeBuildInputs = [ cmake
pkgconfig
];
@ -59,6 +58,7 @@ in stdenv.mkDerivation rec {
x264
vlc
makeWrapper
mbedtls
]
++ optional alsaSupport alsaLib
++ optional pulseaudioSupport libpulseaudio;

View File

@ -1,31 +0,0 @@
diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt
index cd2b80e1..7d829cdb 100644
--- a/libobs/CMakeLists.txt
+++ b/libobs/CMakeLists.txt
@@ -15,6 +15,7 @@ if(UNIX)
find_package(DBus QUIET)
if (NOT APPLE)
find_package(X11_XCB REQUIRED)
+ find_package(XCB REQUIRED)
endif()
else()
set(HAVE_DBUS "0")
@@ -161,12 +162,15 @@ elseif(UNIX)
endif()
include_directories(
- ${X11_XCB_INCLUDE_DIRS})
+ ${X11_XCB_INCLUDE_DIRS}
+ ${XCB_INCLUDE_DIRS})
add_definitions(
- ${X11_XCB_DEFINITIONS})
+ ${X11_XCB_DEFINITIONS}
+ ${XCB_DEFINITIONS})
set(libobs_PLATFORM_DEPS
${libobs_PLATFORM_DEPS}
- ${X11_XCB_LIBRARIES})
+ ${X11_XCB_LIBRARIES}
+ ${XCB_LIBRARIES})
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
# use the sysinfo compatibility library on bsd