about summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers/misc/widevine-cdm.nix
blob: 41021cfdaa7c2929b93d0c47c21638ad05848001 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, stdenv, fetchzip
}:

stdenv.mkDerivation rec {
  pname = "widevine-cdm";
  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 libwidevinecdm.so $out/libwidevinecdm.so
  '';

  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" ];
  };
}