parent
8924e84daa
commit
7b062dc57a
@ -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 ]}" \
|
||||||
|
Loading…
Reference in New Issue
Block a user