1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 14:47:06 +00:00
nixpkgs/pkgs/applications/networking/browsers/vivaldi/widevine.nix

34 lines
892 B
Nix
Raw Normal View History

2019-06-28 22:52:03 +01:00
{ stdenv, fetchurl
, 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
};
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: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 stdenv.lib; {
description = "Widevine support for Vivaldi";
homepage = "https://www.widevine.com";
license = licenses.unfree;
maintainers = with maintainers; [ betaboon ];
platforms = [ "x86_64-linux" ];
};
}