cross: emulateBuildMachine: bump RAM limit & add helper overrideAttrs
fn
This commit is contained in:
@@ -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/>
|
||||||
|
Reference in New Issue
Block a user