chromium: Use patchelfUnstable for WideVine plugin

ref #22333
This commit is contained in:
Michal Rus 2017-09-21 10:00:37 +02:00 committed by Herwig Hochleitner
parent 8924e84daa
commit 7b062dc57a

View File

@ -1,6 +1,10 @@
{ stdenv
, jshon
, glib
, nspr
, nss
, fetchzip
, patchelfUnstable
, enablePepperFlash ? false
, enableWideVine ? false
@ -45,6 +49,8 @@ let
src = upstream-info.binary;
nativeBuildInputs = [ patchelfUnstable ];
phases = [ "unpackPhase" "patchPhase" "installPhase" "checkPhase" ];
unpackCmd = let
@ -66,7 +72,7 @@ let
patchPhase = ''
for sofile in libwidevinecdm.so libwidevinecdmadapter.so; do
chmod +x "$sofile"
patchelf --set-rpath "${mkrpath [ stdenv.cc.cc ]}" "$sofile"
patchelf --set-rpath "${mkrpath [ stdenv.cc.cc glib nspr nss ]}" "$sofile"
done
patchelf --set-rpath "$out/lib:${mkrpath [ stdenv.cc.cc ]}" \