Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vivaldi: widevine-support, fixed ffmpeg-support #63907

Merged
merged 3 commits into from
Jun 29, 2019

Conversation

betaboon
Copy link
Contributor

Motivation for this change

I wanted widevine-support in vivaldi to enable streaming drm-content (eg. netflix)

Things done
  • updated vivaldi-ffmpeg-codecs

  • fixed how ffmpeg-codecs is installed (the way vivaldi detects it has changed)

  • packages widevine-cdm from google

  • extended vivaldi to allow installing with widevine support

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)

  • Built on platform(s)

    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)

  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"

  • Tested execution of all binary files (usually in ./result/bin/)

  • Determined the impact on package closure size (by running nix path-info -S before and after)

  • Assured whether relevant documentation is up to date

  • Fits CONTRIBUTING.md.


Sorry, something went wrong.

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Jun 28, 2019
@ofborg ofborg bot requested a review from NeQuissimus June 28, 2019 22:17
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Jun 28, 2019
Copy link
Member

@eadwu eadwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, seems like I can stop putting everything in .local/lib/vivaldi{,-snapshot} now.

sed -i '/^VIVALDI_FFMPEG_FOUND/ a \
checkffmpeg "${vivaldi-ffmpeg-codecs}/lib/libffmpeg.so"' opt/${vivaldiName}/vivaldi
sed -i '/^if \[ "$VIVALDI_FFMPEG_FOUND/i \
VIVALDI_FFMPEG_FOUND=YES\nCACHED_FFMPEG=${vivaldi-ffmpeg-codecs}/lib/libffmpeg.so' opt/${vivaldiName}/vivaldi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opt/${vivaldiName}/vivaldi -> opt/${vivaldiName}/${vivaldiName} for compatibility with snapshots. Or fixing the symlink from opt/${vivaldiName}/${vivaldiName} to opt/${vivaldiName}/vivaldi.

${stdenv.lib.optionalString enableWidevine "--suffix LD_LIBRARY_PATH : ${libPath}"}
'' + stdenv.lib.optionalString enableWidevine ''
rm $out/opt/vivaldi/libwidevinecdm.so
ln -s ${vivaldi-widevine}/lib/libwidevinecdm.so $out/opt/vivaldi/libwidevinecdm.so
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$out/opt/vivaldi -> $out/opt/${vivaldiName} for the same reason.

@betaboon betaboon force-pushed the pr-vivaldi-widevine-ffmpeg branch from 12e5ba7 to cbbd10c Compare June 29, 2019 00:24
Copy link
Member

@eadwu eadwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine on my end.

@ofborg ofborg bot requested a review from NeQuissimus June 29, 2019 00:36
@NeQuissimus NeQuissimus merged commit 1ab2e92 into NixOS:master Jun 29, 2019
@betaboon betaboon deleted the pr-vivaldi-widevine-ffmpeg branch June 29, 2019 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants