cross: emulateBuildMachine: bump RAM limit & add helper overrideAttrs fn

This commit is contained in:
2023-08-06 08:13:46 +00:00
parent 2f53e94cc9
commit e377a9f05b

View File

@@ -89,13 +89,14 @@ let
origBuilder = builder; origBuilder = builder;
origArgs = args; origArgs = args;
QEMU_OPTS = "-m 4096"; # MiB of RAM QEMU_OPTS = "-m 16386"; # MiB of RAM
enableParallelBuilding = true; enableParallelBuilding = true;
# finally, let nix know that this package should be built by the build system # finally, let nix know that this package should be built by the build system
system = final.stdenv.buildPlatform.system; system = final.stdenv.buildPlatform.system;
}) // { }) // {
override = attrs: emulateBuilder (pkg.override attrs); override = attrs: emulateBuilder (pkg.override attrs);
overrideAttrs = mergeFn: emulateBuilder (pkg.overrideAttrs mergeFn);
} }
# alternatively, `proot` could let us get per-package binfmt: # alternatively, `proot` could let us get per-package binfmt:
# - <https://proot-me.github.io/> # - <https://proot-me.github.io/>