Fix incorrect modDirVersion for latest kernel

This commit is contained in:
Lan Tian 2025-12-11 20:47:15 -08:00
parent 3b3bea2fc5
commit 5a906ba12d
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B

View File

@ -36,6 +36,7 @@ lib.makeOverridable (
splitted = lib.splitString "-" version; splitted = lib.splitString "-" version;
ver0 = builtins.elemAt splitted 0; ver0 = builtins.elemAt splitted 0;
major = lib.versions.pad 2 ver0; major = lib.versions.pad 2 ver0;
fullVersion = lib.versions.pad 3 ver0;
cachyosConfigFile = "${inputs.cachyos-kernel.outPath}/${configVariant}/config"; cachyosConfigFile = "${inputs.cachyos-kernel.outPath}/${configVariant}/config";
cachyosPatch = "${inputs.cachyos-kernel-patches.outPath}/${major}/all/0001-cachyos-base-all.patch"; cachyosPatch = "${inputs.cachyos-kernel-patches.outPath}/${major}/all/0001-cachyos-base-all.patch";
@ -85,7 +86,7 @@ lib.makeOverridable (
defconfig = args.defconfig or "cachyos_defconfig"; defconfig = args.defconfig or "cachyos_defconfig";
modDirVersion = args.modDirVersion or "${ver0}${defaultLocalVersion}"; modDirVersion = args.modDirVersion or "${fullVersion}${defaultLocalVersion}";
# Clang has some incompatibilities with NixOS's default kernel config # Clang has some incompatibilities with NixOS's default kernel config
ignoreConfigErrors = args.ignoreConfigErrors or lto; ignoreConfigErrors = args.ignoreConfigErrors or lto;