diff options
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/obs-studio/plugins/obs-ndi.nix | 10 |
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" |