mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
34 lines
897 B
Nix
34 lines
897 B
Nix
{ lib, stdenv, fetchurl
|
|
, unzip
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "widevine";
|
|
version = "4.10.1582.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://dl.google.com/widevine-cdm/${version}-linux-x64.zip";
|
|
sha256 = "0l743f2yyaq1vvc3iicajgnfpjxjsfvjcqvanndbxs23skgjcv6r";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
unpackPhase = ''
|
|
unzip $src
|
|
'';
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Widevine support for Vivaldi";
|
|
homepage = "https://www.widevine.com";
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ betaboon ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|