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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
896 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl
2019-06-28 22:52:03 +01:00
, unzip
}:
stdenv.mkDerivation rec {
pname = "widevine";
version = "4.10.2391.0";
2019-06-28 22:52:03 +01:00
src = fetchurl {
url = "https://dl.google.com/widevine-cdm/${version}-linux-x64.zip";
sha256 = "sha256-7gH808C67m/s09e4rQUQHb/t+iGVdzW+YzrB1ZxGIdo=";
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" ];
};
}