2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2019-06-28 22:52:03 +01:00
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-12 11:51:53 +01:00
|
|
|
pname = "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
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00: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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00: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" ];
|
|
|
|
};
|
|
|
|
}
|