3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/browsers/vivaldi/widevine.nix

36 lines
889 B
Nix
Raw Normal View History

2019-06-28 22:52:03 +01:00
{ stdenv, fetchurl
, unzip
}:
stdenv.mkDerivation rec {
name = "widevine";
version = "4.10.1196.0";
src = fetchurl {
url = "https://dl.google.com/widevine-cdm/${version}-linux-x64.zip";
sha256 = "01c7nr7d2xs718jymicbk4ipzfx6q253109qv3lk4lryrrhvw14y";
};
buildInputs = [ unzip ];
unpackPhase = ''
2019-10-29 01:01:31 +00:00
unzip $src
2019-06-28 22:52:03 +01:00
'';
2019-10-29 01:01:31 +00:00
installPhase = let
installDir = "$out/share/google/chrome/WidevineCdm/_platform_specific/linux_x64";
in ''
install -vD libwidevinecdm.so ${installDir}/libwidevinecdm.so
install -vD manifest.json ${installDir}/manifest.json
install -vD LICENSE.txt ${installDir}/LICENSE.txt
2019-06-28 22:52:03 +01:00
'';
meta = with stdenv.lib; {
description = "Widevine support for Vivaldi";
homepage = "https://www.widevine.com";
license = licenses.unfree;
maintainers = with maintainers; [ betaboon ];
platforms = [ "x86_64-linux" ];
};
}