Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
1002 B
Nix
42 lines
1002 B
Nix
{
|
|
lib,
|
|
callPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
let
|
|
scx-common = rec {
|
|
versionInfo = lib.importJSON ./version.json;
|
|
|
|
inherit (versionInfo.scx) version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sched-ext";
|
|
repo = "scx";
|
|
tag = "v${versionInfo.scx.version}";
|
|
inherit (versionInfo.scx) hash;
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/sched-ext/scx";
|
|
changelog = "https://github.com/sched-ext/scx/releases/tag/v${versionInfo.scx.version}";
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = lib.platforms.linux;
|
|
badPlatforms = [ "aarch64-linux" ];
|
|
maintainers = with lib.maintainers; [
|
|
johnrtitor
|
|
Gliczy
|
|
];
|
|
};
|
|
};
|
|
|
|
schedulers = lib.mergeAttrsList [
|
|
{ cscheds = import ./scx_cscheds.nix; }
|
|
{ rustscheds = import ./scx_rustscheds.nix; }
|
|
{ full = import ./scx_full.nix; }
|
|
];
|
|
in
|
|
(lib.mapAttrs (name: scheduler: callPackage scheduler { inherit scx-common; }) schedulers)
|
|
// {
|
|
inherit scx-common;
|
|
}
|