widevine page size change
This commit is contained in:
parent
391ebb0f5e
commit
08af404899
|
@ -55,8 +55,8 @@ final: prev: rec {
|
|||
|
||||
raspberrypi-utils = final.callPackage ./raspberrypi-utils.nix {};
|
||||
|
||||
widevine-aarch64-4k = final.callPackage ./widevine-aarch64 {pageSize = 4096;};
|
||||
widevine-aarch64-16k = final.callPackage ./widevine-aarch64 {pageSize = 16384;};
|
||||
widevine-aarch64-4k = final.callPackage ./widevine-aarch64 {pageSize = 4;};
|
||||
widevine-aarch64-16k = final.callPackage ./widevine-aarch64 {pageSize = 16;};
|
||||
|
||||
mpd-headless =
|
||||
(prev.mpdWithFeatures.override {
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
fetchurl,
|
||||
squashfsTools,
|
||||
python3,
|
||||
# Depends on kernel used
|
||||
pageSize ? 4096,
|
||||
# Depends on kernel used, in kb
|
||||
pageSize ? 4,
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "widevine-aarch64-${toString pageSize}k";
|
||||
|
@ -20,7 +20,7 @@ stdenv.mkDerivation {
|
|||
|
||||
buildPhase = ''
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue