forked from mirrors/nixpkgs
208a03de93
hopefully it makes the hash not change sometimes
28 lines
836 B
Nix
28 lines
836 B
Nix
{ lib, stdenv, fetchzip
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "widevine";
|
|
version = "4.10.2449.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://dl.google.com/widevine-cdm/${version}-linux-x64.zip";
|
|
sha256 = "sha256-f2kAkP+s3fB+krEZsiujEoI4oznkzSyaIB/CRJZWlXE=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
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" ];
|
|
};
|
|
}
|