widevine update?
This commit is contained in:
parent
a435fa66d8
commit
dfc6793a92
|
@ -5,41 +5,44 @@
|
|||
python3,
|
||||
# Depends on kernel used, in kb
|
||||
pageSize ? 4,
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "widevine-aarch64-${toString pageSize}k";
|
||||
version = "4.10.2662.3";
|
||||
}: let
|
||||
lacrosVersion = "128.0.6613.119";
|
||||
widevineVersion = "4.10.2662.3";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "widevine-aarch64-${toString pageSize}k";
|
||||
version = "4.10.2662.3";
|
||||
|
||||
srcs = fetchurl {
|
||||
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/chromeos-lacros-arm64-squash-zstd-120.0.6098.0";
|
||||
hash = "sha256-OKV8w5da9oZ1oSGbADVPCIkP9Y0MVLaQ3PXS3ZBLFXY=";
|
||||
};
|
||||
srcs = fetchurl {
|
||||
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/chromeos-lacros-arm64-squash-zstd-${lacrosVersion}";
|
||||
hash = "sha256-Q3g2npzSh9imzn36AR8EDWB5LS9MlhRBEqalNCLDxHI=";
|
||||
};
|
||||
|
||||
unpackPhase = ":";
|
||||
sourceRoot = ".";
|
||||
unpackPhase = ":";
|
||||
sourceRoot = ".";
|
||||
|
||||
buildPhase = ''
|
||||
unsquashfs -q $srcs 'WidevineCdm/*'
|
||||
env TARGET_PAGE_SIZE=${toString (pageSize * 1024)} python3 "${./widevine_fixup.py}" squashfs-root/WidevineCdm/_platform_specific/cros_arm64/libwidevinecdm.so libwidevinecdm.so
|
||||
'';
|
||||
buildPhase = ''
|
||||
unsquashfs -q $srcs 'WidevineCdm/*'
|
||||
env TARGET_PAGE_SIZE=${toString (pageSize * 1024)} python3 ${./widevine_fixup.py} squashfs-root/WidevineCdm/_platform_specific/cros_arm64/libwidevinecdm.so libwidevinecdm.so
|
||||
'';
|
||||
|
||||
# TODO: systemwide install
|
||||
installPhase = ''
|
||||
install -d -m 0755 "$out"
|
||||
install -p -m 0755 -t "$out" libwidevinecdm.so
|
||||
install -p -m 0644 -t "$out" squashfs-root/WidevineCdm/manifest.json
|
||||
install -p -m 0644 -t "$out" squashfs-root/WidevineCdm/LICENSE
|
||||
# TODO: systemwide install
|
||||
installPhase = ''
|
||||
install -d -m 0755 "$out"
|
||||
install -p -m 0755 -t "$out" libwidevinecdm.so
|
||||
install -p -m 0644 -t "$out" squashfs-root/WidevineCdm/manifest.json
|
||||
install -p -m 0644 -t "$out" squashfs-root/WidevineCdm/LICENSE
|
||||
|
||||
mkdir -p "$out/share/google/chrome/WidevineCdm/_platform_specific/linux_arm64"
|
||||
mkdir -p "$out/share/google/chrome/WidevineCdm/_platform_specific/linux_x64"
|
||||
# Hack because Chromium hardcodes a check for this right now...
|
||||
touch "$out/share/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"
|
||||
ln -sf ../../../../manifest.json "$out/share/google/chrome/WidevineCdm"
|
||||
ln -sf ../../../../../../libwidevinecdm.so "$out/share/google/chrome/WidevineCdm/_platform_specific/linux_arm64/"
|
||||
'';
|
||||
mkdir -p "$out/share/google/chrome/WidevineCdm/_platform_specific/linux_arm64"
|
||||
mkdir -p "$out/share/google/chrome/WidevineCdm/_platform_specific/linux_x64"
|
||||
# Hack because Chromium hardcodes a check for this right now...
|
||||
touch "$out/share/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"
|
||||
ln -sf ../../../../manifest.json "$out/share/google/chrome/WidevineCdm"
|
||||
ln -sf ../../../../../../libwidevinecdm.so "$out/share/google/chrome/WidevineCdm/_platform_specific/linux_arm64/"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
squashfsTools
|
||||
python3
|
||||
];
|
||||
}
|
||||
nativeBuildInputs = [
|
||||
squashfsTools
|
||||
python3
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue