mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
9aa0062f82
I don't think we need a alias here, as it has been unstable for a few days. If anyone thinks we should, I am happy to do so.
29 lines
794 B
Nix
29 lines
794 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
scx,
|
|
mkScxScheduler,
|
|
}:
|
|
scx.cscheds.overrideAttrs (oldAttrs: {
|
|
pname = "scx_full";
|
|
postInstall =
|
|
(oldAttrs.postInstall or "")
|
|
+ ''
|
|
cp ${lib.getExe scx.bpfland} $out/bin/
|
|
cp ${lib.getExe scx.lavd} $out/bin/
|
|
cp ${lib.getExe scx.layered} $out/bin/
|
|
cp ${lib.getExe scx.rlfifo} $out/bin/
|
|
cp ${lib.getExe scx.rustland} $out/bin/
|
|
cp ${lib.getExe scx.rusty} $out/bin/
|
|
'';
|
|
|
|
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.
|
|
'';
|
|
};
|
|
})
|