chromium: Use patchelfUnstable for WideVine plugin

ref #22333

authored by Michal Rus and committed by Herwig Hochleitner 7b062dc5 8924e84d

+7 -1
+7 -1
pkgs/applications/networking/browsers/chromium/plugins.nix
··· 1 1 { stdenv 2 2 , jshon 3 + , glib 4 + , nspr 5 + , nss 3 6 , fetchzip 7 + , patchelfUnstable 4 8 , enablePepperFlash ? false 5 9 , enableWideVine ? false 6 10 ··· 45 49 46 50 src = upstream-info.binary; 47 51 52 + nativeBuildInputs = [ patchelfUnstable ]; 53 + 48 54 phases = [ "unpackPhase" "patchPhase" "installPhase" "checkPhase" ]; 49 55 50 56 unpackCmd = let ··· 66 72 patchPhase = '' 67 73 for sofile in libwidevinecdm.so libwidevinecdmadapter.so; do 68 74 chmod +x "$sofile" 69 - patchelf --set-rpath "${mkrpath [ stdenv.cc.cc ]}" "$sofile" 75 + patchelf --set-rpath "${mkrpath [ stdenv.cc.cc glib nspr nss ]}" "$sofile" 70 76 done 71 77 72 78 patchelf --set-rpath "$out/lib:${mkrpath [ stdenv.cc.cc ]}" \