cachy kernel naming

This commit is contained in:
mjallen18
2025-12-12 13:25:50 -06:00
parent 41063a1ef7
commit ce39a330b1
9 changed files with 250 additions and 205 deletions

View File

@@ -32,6 +32,7 @@
description ? "Linux EEVDF-BORE scheduler Kernel by CachyOS with other patches and improvements",
# For flakes
inputs ? { },
pname ? "unknown",
# Explicitly accept nixpkgs, falling back to inputs or the system path
nixpkgs ? inputs.nixpkgs or pkgs.path,
}:
@@ -104,8 +105,32 @@ let
};
linuxConfigTransfomed = import configPath;
# normalizeKernelName = pname: drv:
# drv.overrideAttrs (old: let
# ver = old.version or (lib.getVersion old.name or "unknown");
# in {
# __intentionallyOverridingVersion = true;
# pname = (if useLTO != "none" then "${pname}-lto" else pname);
# version = ver;
# name = "${pname}-${ver}";
# });
# versionSuffix = "+C${shorter versions.config.rev}+P${shorter versions.patches.rev}";
# kernel =
# normalizeKernelName (cachyConfig.taste or "linux")
# (callPackage ./kernel.nix {
# inherit cachyConfig stdenv kconfigToNix;
# kernelPatches = [ ];
# configfile = preparedConfigfile;
# config = linuxConfigTransfomed;
# flakes = inputs.flakes or null;
# final = inputs.final or null;
# kernelPackages = packagesWithRightPlatforms;
# });
kernel = callPackage ./kernel.nix {
inherit cachyConfig stdenv kconfigToNix;
inherit cachyConfig pname stdenv kconfigToNix;
kernelPatches = [ ];
configfile = preparedConfigfile;
config = linuxConfigTransfomed;