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