cachy kernel naming
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user