1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

Merge pull request #13094 from nathan7/chromium-flash-version-jq

chromium/plugins: use jq for extracting the Flash version
This commit is contained in:
zimbatm 2016-02-23 22:45:42 +00:00
commit 7848d215f4

View file

@ -1,4 +1,5 @@
{ stdenv
, jshon
, enablePepperFlash ? false
, enableWideVine ? false
@ -83,9 +84,7 @@ let
wvModule = "@widevine@/lib/libwidevinecdmadapter.so";
wvInfo = "#${wvName}#${wvDescription};${wvMimeTypes}";
in ''
flashVersion="$(
sed -n -r 's/.*"version": "([^"]+)",.*/\1/p' PepperFlash/manifest.json
)"
flashVersion="$(${jshon}/bin/jshon -F PepperFlash/manifest.json -e version -u)"
install -vD PepperFlash/libpepflashplayer.so \
"$flash/lib/libpepflashplayer.so"