akkoma: Force use of system allocator and pre‐allocate hugepages
This commit is contained in:
parent
c26e1a32bd
commit
2d5ff56730
|
@ -47,6 +47,16 @@ in {
|
|||
mpv = final.mpv-unwrapped;
|
||||
extraMakeWrapperArgs = [ "--set" "MIMALLOC_RESERVE_HUGE_OS_PAGES" "1" ];
|
||||
};
|
||||
|
||||
akkoma = prev.akkoma.overrideAttrs (prevAttrs: {
|
||||
postInstall = prevAttrs.postInstall or "" + ''
|
||||
sed -i \
|
||||
'/^start () {/a \
|
||||
export MIMALLOC_RESERVE_HUGE_OS_PAGES=1 \
|
||||
export ERL_FLAGS="''${ERL_FLAGS:-} +MBe false +MDe false +MEe false +MFe false +MHe false +MIe false +MLe false +MMe false +MRe false +MSe false +MTe false"' \
|
||||
"$out/bin/pleroma"
|
||||
'';
|
||||
});
|
||||
} // lib.genAttrs [
|
||||
"bat"
|
||||
"bottom"
|
||||
|
|
Loading…
Reference in a new issue