nixpkgs/pkgs/applications/networking/browsers/misc/widevine-cdm.nix

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

35 lines
932 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchzip
2022-10-05 10:18:40 +00:00
}:
stdenv.mkDerivation rec {
pname = "widevine-cdm";
version = "4.10.2557.0";
2022-10-05 10:18:40 +00:00
src = fetchzip {
url = "https://dl.google.com/widevine-cdm/${version}-linux-x64.zip";
hash = "sha256-XxTjuPjWy06SmHC6GaIVIp3zD76isCVATWwwdZljntE=";
2022-10-05 10:18:40 +00:00
stripRoot = false;
};
installPhase = ''
runHook preInstall
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
runHook postInstall
2022-10-05 10:18:40 +00:00
'';
meta = with lib; {
description = "Widevine CDM";
homepage = "https://www.widevine.com";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
maintainers = with maintainers; [ jlamur ];
platforms = [ "x86_64-linux" ];
2022-10-05 10:18:40 +00:00
};
}