lmao perhaps

This commit is contained in:
mjallen18
2026-03-10 10:51:32 -05:00
parent c13ce86810
commit 1616c6766e
4 changed files with 131 additions and 11 deletions

View File

@@ -30,6 +30,7 @@
withHDR ? true,
withoutDebug ? false,
pageSize ? "4k",
withRust ? false,
description ? "Linux EEVDF-BORE scheduler Kernel by CachyOS with other patches and improvements",
# For flakes
inputs ? { },
@@ -86,6 +87,7 @@ let
description
withUpdateScript
pageSize
withRust
;
};
@@ -93,15 +95,22 @@ let
# - First we apply the changes fromt their PKGBUILD using kconfig;
# - Then we NIXify it (in the update-script);
# - Last state is importing the NIXified version for building.
preparedConfigfile = callPackage ./prepare.nix {
inherit
cachyConfig
stdenv
kernel
ogKernelConfigfile
commonMakeFlags
;
};
rustPkgs = lib.optionalAttrs withRust (import ./lib/rust-pkgs.nix { inherit pkgs; });
preparedConfigfile = callPackage ./prepare.nix (
{
inherit
cachyConfig
stdenv
kernel
ogKernelConfigfile
commonMakeFlags
;
}
// lib.optionalAttrs withRust {
inherit (rustPkgs) rustc rustBindgen rustLibSrc;
}
);
kconfigToNix = callPackage ./lib/kconfig-to-nix.nix {
configfile = preparedConfigfile;
};