Skip to content

Commit d95cd1b

Browse files
Cray ElliottCray Elliott
Cray Elliott
authored and
Cray Elliott
committedMay 4, 2017
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
1 parent 390e2ea commit d95cd1b

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed
 

‎pkgs/applications/video/obs-studio/default.nix

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{ stdenv
22
, fetchFromGitHub
33
, cmake
4+
, fdk_aac
45
, ffmpeg
56
, jansson
67
, libxkbcommon
8+
, libpthreadstubs
9+
, libXdmcp
710
, qtbase
811
, qtx11extras
912
, libv4l
1013
, x264
1114
, curl
1215
, xorg
1316
, makeWrapper
17+
, pkgconfig
1418

1519
, alsaSupport ? false
1620
, alsaLib
@@ -22,23 +26,29 @@ let
2226
optional = stdenv.lib.optional;
2327
in stdenv.mkDerivation rec {
2428
name = "obs-studio-${version}";
25-
version = "18.0.1";
29+
version = "18.0.2";
2630

2731
src = fetchFromGitHub {
2832
owner = "jp9000";
2933
repo = "obs-studio";
30-
rev = "624aa2a5";
31-
sha256 = "1bs82rqyq7wjjg99mh23ap8z5bmrhjfnza5iyjx808fzqc0bgzaj";
34+
rev = "26c28b45";
35+
sha256 = "06rr70z2p2l8prxmd075pnlc759ddlqn3jprn8ns148x6s2vqik2";
3236
};
3337

38+
patches = [ ./find-xcb.patch ];
39+
3440
nativeBuildInputs = [ cmake
41+
pkgconfig
3542
];
3643

3744
buildInputs = [ curl
45+
fdk_aac
3846
ffmpeg
3947
jansson
4048
libv4l
4149
libxkbcommon
50+
libpthreadstubs
51+
libXdmcp
4252
qtbase
4353
qtx11extras
4454
x264
@@ -65,7 +75,7 @@ in stdenv.mkDerivation rec {
6575
video content, efficiently
6676
'';
6777
homepage = "https://obsproject.com";
68-
maintainers = with maintainers; [ jb55 ];
78+
maintainers = with maintainers; [ jb55 MP2E ];
6979
license = licenses.gpl2;
7080
platforms = with platforms; linux;
7181
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

0 commit comments

Comments
 (0)