diff options
author | Michal Rus <m@michalrus.com> | 2017-09-21 10:00:37 +0200 |
---|---|---|
committer | Herwig Hochleitner <herwig@bendlas.net> | 2018-01-22 02:20:03 +0100 |
commit | 7b062dc57ae54bc2573fd7ef1465ea390646c577 (patch) | |
tree | 1ddf1c9c79f7dc6a89e9e01157e6823ad0643edb /pkgs/applications/networking | |
parent | 8924e84daa5adfd7a6c5697cf08d77eee70245dd (diff) | |
download | nixlib-7b062dc57ae54bc2573fd7ef1465ea390646c577.tar nixlib-7b062dc57ae54bc2573fd7ef1465ea390646c577.tar.gz nixlib-7b062dc57ae54bc2573fd7ef1465ea390646c577.tar.bz2 nixlib-7b062dc57ae54bc2573fd7ef1465ea390646c577.tar.lz nixlib-7b062dc57ae54bc2573fd7ef1465ea390646c577.tar.xz nixlib-7b062dc57ae54bc2573fd7ef1465ea390646c577.tar.zst nixlib-7b062dc57ae54bc2573fd7ef1465ea390646c577.zip |
chromium: Use patchelfUnstable for WideVine plugin
ref #22333
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r-- | pkgs/applications/networking/browsers/chromium/plugins.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/plugins.nix b/pkgs/applications/networking/browsers/chromium/plugins.nix index fa42c2f3b115..a30b35fd15ab 100644 --- a/pkgs/applications/networking/browsers/chromium/plugins.nix +++ b/pkgs/applications/networking/browsers/chromium/plugins.nix @@ -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 ]}" \ |