lmao perhaps
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user