fractal: Pre‐allocate single hugepage
This commit is contained in:
parent
4d9d033d4c
commit
00fab0858d
1 changed files with 12 additions and 1 deletions
|
@ -31,6 +31,18 @@ in {
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
fractal = prev.fractal.overrideAttrs (prevAttrs: {
|
||||||
|
nativeBuildInputs = prevAttrs.nativeBuildInputs or [ ] ++ [ final.makeBinaryWrapper ];
|
||||||
|
buildInputs = prevAttrs.buildInputs or [ ] ++ [ final.mimalloc ];
|
||||||
|
|
||||||
|
NIX_RUSTFLAGS = lib.toList prevAttrs.NIX_RUSTFLAGS or [ ] ++ [ "-C link-arg=-lmimalloc" ];
|
||||||
|
|
||||||
|
postInstall = prevAttrs.postInstall or "" + ''
|
||||||
|
wrapProgram "$out/bin/fractal" \
|
||||||
|
--set MIMALLOC_RESERVE_HUGE_OS_PAGES 1
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
mpv = final.mpv-unwrapped.wrapper {
|
mpv = final.mpv-unwrapped.wrapper {
|
||||||
mpv = final.mpv-unwrapped;
|
mpv = final.mpv-unwrapped;
|
||||||
extraMakeWrapperArgs = [ "--set" "MIMALLOC_RESERVE_HUGE_OS_PAGES" "1" ];
|
extraMakeWrapperArgs = [ "--set" "MIMALLOC_RESERVE_HUGE_OS_PAGES" "1" ];
|
||||||
|
@ -43,7 +55,6 @@ in {
|
||||||
"erlang"
|
"erlang"
|
||||||
"fd"
|
"fd"
|
||||||
"firefox-unwrapped"
|
"firefox-unwrapped"
|
||||||
"fractal"
|
|
||||||
"fuzzel"
|
"fuzzel"
|
||||||
"helix"
|
"helix"
|
||||||
"kitty"
|
"kitty"
|
||||||
|
|
Loading…
Reference in a new issue