obs-studio: 18.0.1 -> 18.0.2

add myself as a maintainer for this package, add fdk_aac, pthreadstubs,
and Xdmcp as dependencies. Also add a patch to fix a linker error
involving xcb

+45 -4
+14 -4
pkgs/applications/video/obs-studio/default.nix
··· 1 { stdenv 2 , fetchFromGitHub 3 , cmake 4 , ffmpeg 5 , jansson 6 , libxkbcommon 7 , qtbase 8 , qtx11extras 9 , libv4l ··· 11 , curl 12 , xorg 13 , makeWrapper 14 15 , alsaSupport ? false 16 , alsaLib ··· 22 optional = stdenv.lib.optional; 23 in stdenv.mkDerivation rec { 24 name = "obs-studio-${version}"; 25 - version = "18.0.1"; 26 27 src = fetchFromGitHub { 28 owner = "jp9000"; 29 repo = "obs-studio"; 30 - rev = "624aa2a5"; 31 - sha256 = "1bs82rqyq7wjjg99mh23ap8z5bmrhjfnza5iyjx808fzqc0bgzaj"; 32 }; 33 34 nativeBuildInputs = [ cmake 35 ]; 36 37 buildInputs = [ curl 38 ffmpeg 39 jansson 40 libv4l 41 libxkbcommon 42 qtbase 43 qtx11extras 44 x264 ··· 65 video content, efficiently 66 ''; 67 homepage = "https://obsproject.com"; 68 - maintainers = with maintainers; [ jb55 ]; 69 license = licenses.gpl2; 70 platforms = with platforms; linux; 71 };
··· 1 { stdenv 2 , fetchFromGitHub 3 , cmake 4 + , fdk_aac 5 , ffmpeg 6 , jansson 7 , libxkbcommon 8 + , libpthreadstubs 9 + , libXdmcp 10 , qtbase 11 , qtx11extras 12 , libv4l ··· 14 , curl 15 , xorg 16 , makeWrapper 17 + , pkgconfig 18 19 , alsaSupport ? false 20 , alsaLib ··· 26 optional = stdenv.lib.optional; 27 in stdenv.mkDerivation rec { 28 name = "obs-studio-${version}"; 29 + version = "18.0.2"; 30 31 src = fetchFromGitHub { 32 owner = "jp9000"; 33 repo = "obs-studio"; 34 + rev = "26c28b45"; 35 + sha256 = "06rr70z2p2l8prxmd075pnlc759ddlqn3jprn8ns148x6s2vqik2"; 36 }; 37 38 + patches = [ ./find-xcb.patch ]; 39 + 40 nativeBuildInputs = [ cmake 41 + pkgconfig 42 ]; 43 44 buildInputs = [ curl 45 + fdk_aac 46 ffmpeg 47 jansson 48 libv4l 49 libxkbcommon 50 + libpthreadstubs 51 + libXdmcp 52 qtbase 53 qtx11extras 54 x264 ··· 75 video content, efficiently 76 ''; 77 homepage = "https://obsproject.com"; 78 + maintainers = with maintainers; [ jb55 MP2E ]; 79 license = licenses.gpl2; 80 platforms = with platforms; linux; 81 };
+31
pkgs/applications/video/obs-studio/find-xcb.patch
···
··· 1 + diff --git a/libobs/CMakeLists.txt b/libobs/CMakeLists.txt 2 + index cd2b80e1..7d829cdb 100644 3 + --- a/libobs/CMakeLists.txt 4 + +++ b/libobs/CMakeLists.txt 5 + @@ -15,6 +15,7 @@ if(UNIX) 6 + find_package(DBus QUIET) 7 + if (NOT APPLE) 8 + find_package(X11_XCB REQUIRED) 9 + + find_package(XCB REQUIRED) 10 + endif() 11 + else() 12 + set(HAVE_DBUS "0") 13 + @@ -161,12 +162,15 @@ elseif(UNIX) 14 + endif() 15 + 16 + include_directories( 17 + - ${X11_XCB_INCLUDE_DIRS}) 18 + + ${X11_XCB_INCLUDE_DIRS} 19 + + ${XCB_INCLUDE_DIRS}) 20 + add_definitions( 21 + - ${X11_XCB_DEFINITIONS}) 22 + + ${X11_XCB_DEFINITIONS} 23 + + ${XCB_DEFINITIONS}) 24 + set(libobs_PLATFORM_DEPS 25 + ${libobs_PLATFORM_DEPS} 26 + - ${X11_XCB_LIBRARIES}) 27 + + ${X11_XCB_LIBRARIES} 28 + + ${XCB_LIBRARIES}) 29 + 30 + if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") 31 + # use the sysinfo compatibility library on bsd