mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
- pull schedulers from the package definition - actually check we have the right lists at build time - make scx.full a simple buildEnv to not have to deal with the checks being different
31 lines
798 B
Nix
31 lines
798 B
Nix
{
|
|
buildEnv,
|
|
scx,
|
|
}:
|
|
buildEnv {
|
|
pname = "scx_full";
|
|
inherit (scx.rustscheds) version;
|
|
|
|
paths = [
|
|
scx.cscheds
|
|
scx.rustscheds
|
|
];
|
|
|
|
passthru.schedulers = scx.cscheds.schedulers ++ scx.rustscheds.schedulers;
|
|
|
|
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.
|
|
:::
|
|
'';
|
|
homepage = "https://github.com/sched-ext/scx";
|
|
};
|
|
}
|