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

34 lines
896 B
Nix
Raw Normal View History

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