about summary refs log tree commit diff
path: root/pkgs/applications/video
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2022-08-23 10:36:58 +0200
committerGitHub <noreply@github.com>2022-08-23 10:36:58 +0200
commitcd1e6af2c552c97582889d22c2536c9e10ab86f7 (patch)
treef75436879bb546baaf897d99480e7c8252983b6c /pkgs/applications/video
parent0a77f5231e25a51b04d02afadbaf88fcd3db00e3 (diff)
parentc195e88007bc9fe95c254b3165e5d61952a621f0 (diff)
Merge pull request #181614 from lukegb/ndi
ndi: 4 -> 5.5.1
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r--pkgs/applications/video/obs-studio/plugins/obs-ndi.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/video/obs-studio/plugins/obs-ndi.nix b/pkgs/applications/video/obs-studio/plugins/obs-ndi.nix
index 76d4ec85a0146..d73c05fdead11 100644
--- a/pkgs/applications/video/obs-studio/plugins/obs-ndi.nix
+++ b/pkgs/applications/video/obs-studio/plugins/obs-ndi.nix
@@ -16,7 +16,15 @@ stdenv.mkDerivation rec {
 
   patches = [ ./fix-search-path.patch ./hardcode-ndi-path.patch ];
 
-  postPatch = "sed -i -e s,@NDI@,${ndi},g src/obs-ndi.cpp";
+  postPatch = ''
+    # Add path (variable added in hardcode-ndi-path.patch)
+    sed -i -e s,@NDI@,${ndi},g src/obs-ndi.cpp
+
+    # Replace bundled NDI SDK with the upstream version
+    # (This fixes soname issues)
+    rm -rf lib/ndi
+    ln -s ${ndi}/include lib/ndi
+  '';
 
   cmakeFlags = [
     "-DLIBOBS_INCLUDE_DIR=${obs-studio}/include/obs"