nixpkgs/pkgs/os-specific/linux/scx/scx_full.nix
John Titor 6a0186a14d
scx.full: add passthru.updateScript
Co-authored-by: Gliczy <Gliczy@users.noreply.github.com>
Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
2024-11-23 00:06:28 +05:30

31 lines
818 B
Nix

{
lib,
stdenv,
scx-common,
scx,
}:
scx.cscheds.overrideAttrs (oldAttrs: {
pname = "scx_full";
postInstall =
(oldAttrs.postInstall or "")
+ ''
cp ${scx.rustscheds}/bin/* ${placeholder "bin"}/bin/
'';
passthru.updateScript.command = ./update.sh;
meta = oldAttrs.meta // {
description = "Sched-ext C and Rust userspace schedulers";
longDescription = ''
This includes C based schedulers such as scx_central, scx_flatcg,
scx_pair, scx_qmap, scx_simple, scx_userland and Rust based schedulers
like scx_rustland, scx_bpfland, scx_lavd, scx_layered, scx_rlfifo.
::: {.note}
Sched-ext schedulers are only available on kernels version 6.12 or later.
It is recommended to use the latest kernel for the best compatibility.
:::
'';
};
})