chromium: fix rpath-overwriting in WideVine plugin
This commit is contained in:
parent
6b77189b80
commit
d585a3207b
1 changed files with 5 additions and 7 deletions
|
@ -69,14 +69,12 @@ let
|
|||
! find -iname '*.so' -exec ldd {} + | grep 'not found'
|
||||
'';
|
||||
|
||||
patchPhase = ''
|
||||
for sofile in libwidevinecdm.so libwidevinecdmadapter.so; do
|
||||
chmod +x "$sofile"
|
||||
patchelf --set-rpath "${mkrpath [ stdenv.cc.cc glib nspr nss ]}" "$sofile"
|
||||
done
|
||||
PATCH_RPATH = mkrpath [ stdenv.cc.cc glib nspr nss ];
|
||||
|
||||
patchelf --set-rpath "$out/lib:${mkrpath [ stdenv.cc.cc ]}" \
|
||||
libwidevinecdmadapter.so
|
||||
patchPhase = ''
|
||||
chmod +x libwidevinecdm.so libwidevinecdmadapter.so
|
||||
patchelf --set-rpath "$PATCH_RPATH" libwidevinecdm.so
|
||||
patchelf --set-rpath "$out/lib:$PATCH_RPATH" libwidevinecdmadapter.so
|
||||
'';
|
||||
|
||||
installPhase = let
|
||||
|
|
Loading…
Reference in a new issue