-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
vivaldi: widevine-support, fixed ffmpeg-support #63907
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
12e5ba7
to
cbbd10c
Compare
There was a problem hiding this 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.
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
innix.conf
on non-NixOS)Built on platform(s)
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.