obs-studio: link libcef instead copy

materus 6fa87aba 344c8f45

+11 -5
+11 -5
pkgs/applications/video/obs-studio/default.nix
··· 118 118 postUnpack = '' 119 119 mkdir -p cef/Release cef/Resources cef/libcef_dll_wrapper/ 120 120 for i in ${libcef}/share/cef/*; do 121 - cp -r $i cef/Release/ 122 - cp -r $i cef/Resources/ 121 + ln -s $i cef/Release/ 122 + ln -s $i cef/Resources/ 123 123 done 124 - cp -r ${libcef}/lib/libcef.so cef/Release/ 125 - cp -r ${libcef}/lib/libcef_dll_wrapper.a cef/libcef_dll_wrapper/ 126 - cp -r ${libcef}/include cef/ 124 + ln -s ${libcef}/lib/libcef.so cef/Release/ 125 + ln -s ${libcef}/lib/libcef_dll_wrapper.a cef/libcef_dll_wrapper/ 126 + ln -s ${libcef}/include cef/ 127 127 ''; 128 128 129 129 cmakeFlags = [ ··· 145 145 blackmagic-desktop-video 146 146 ]; 147 147 in '' 148 + #Remove libcef before patchelf, otherwise it will fail 149 + rm $out/lib/obs-plugins/libcef.so 150 + 148 151 qtWrapperArgs+=( 149 152 --prefix LD_LIBRARY_PATH : "$out/lib:${lib.makeLibraryPath wrapperLibraries}" 150 153 ''${gappsWrapperArgs[@]} ··· 154 157 postFixup = lib.optionalString stdenv.isLinux '' 155 158 addOpenGLRunpath $out/lib/lib*.so 156 159 addOpenGLRunpath $out/lib/obs-plugins/*.so 160 + 161 + #Link libcef again after patchelf for other libs 162 + ln -s ${libcef}/lib/libcef.so $out/lib/obs-plugins/libcef.so 157 163 ''; 158 164 159 165 meta = with lib; {