tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
obs-studio: link libcef instead copy
materus
2 years ago
6fa87aba
344c8f45
+11
-5
1 changed file
expand all
collapse all
unified
split
pkgs
applications
video
obs-studio
default.nix
+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
121
-
cp -r $i cef/Release/
122
122
-
cp -r $i cef/Resources/
121
121
+
ln -s $i cef/Release/
122
122
+
ln -s $i cef/Resources/
123
123
done
124
124
-
cp -r ${libcef}/lib/libcef.so cef/Release/
125
125
-
cp -r ${libcef}/lib/libcef_dll_wrapper.a cef/libcef_dll_wrapper/
126
126
-
cp -r ${libcef}/include cef/
124
124
+
ln -s ${libcef}/lib/libcef.so cef/Release/
125
125
+
ln -s ${libcef}/lib/libcef_dll_wrapper.a cef/libcef_dll_wrapper/
126
126
+
ln -s ${libcef}/include cef/
127
127
'';
128
128
129
129
cmakeFlags = [
···
145
145
blackmagic-desktop-video
146
146
];
147
147
in ''
148
148
+
#Remove libcef before patchelf, otherwise it will fail
149
149
+
rm $out/lib/obs-plugins/libcef.so
150
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
160
+
161
161
+
#Link libcef again after patchelf for other libs
162
162
+
ln -s ${libcef}/lib/libcef.so $out/lib/obs-plugins/libcef.so
157
163
'';
158
164
159
165
meta = with lib; {