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 {};
|
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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue