mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
6a0186a14d
Co-authored-by: Gliczy <Gliczy@users.noreply.github.com> Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
31 lines
818 B
Nix
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.
|
|
:::
|
|
'';
|
|
};
|
|
})
|