widevine page size change

This commit is contained in:
chaos 2024-09-04 13:49:32 +01:00
parent 391ebb0f5e
commit 08af404899
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -55,8 +55,8 @@ final: prev: rec {
raspberrypi-utils = final.callPackage ./raspberrypi-utils.nix {}; raspberrypi-utils = final.callPackage ./raspberrypi-utils.nix {};
widevine-aarch64-4k = final.callPackage ./widevine-aarch64 {pageSize = 4096;}; widevine-aarch64-4k = final.callPackage ./widevine-aarch64 {pageSize = 4;};
widevine-aarch64-16k = final.callPackage ./widevine-aarch64 {pageSize = 16384;}; widevine-aarch64-16k = final.callPackage ./widevine-aarch64 {pageSize = 16;};
mpd-headless = mpd-headless =
(prev.mpdWithFeatures.override { (prev.mpdWithFeatures.override {

View file

@ -3,8 +3,8 @@
fetchurl, fetchurl,
squashfsTools, squashfsTools,
python3, python3,
# Depends on kernel used # Depends on kernel used, in kb
pageSize ? 4096, pageSize ? 4,
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "widevine-aarch64-${toString pageSize}k"; pname = "widevine-aarch64-${toString pageSize}k";
@ -20,7 +20,7 @@ stdenv.mkDerivation {
buildPhase = '' buildPhase = ''
unsquashfs -q $srcs 'WidevineCdm/*' unsquashfs -q $srcs 'WidevineCdm/*'
env TARGET_PAGE_SIZE=${toString pageSize} python3 "${./widevine_fixup.py}" squashfs-root/WidevineCdm/_platform_specific/cros_arm64/libwidevinecdm.so libwidevinecdm.so 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 # TODO: systemwide install