Rearrange the kernels to make them self-defining

This commit is contained in:
mexisme
2022-12-05 17:32:25 +13:00
parent f99c9d5b1f
commit e37520e48b
5 changed files with 188 additions and 162 deletions

View File

@@ -0,0 +1,23 @@
{ lib,
buildLinux,
callPackage,
fetchurl,
linuxPackagesFor,
}:
let
inherit (lib) kernel recurseIntoAttrs;
in {
repos = callPackage ../repos.nix {};
linuxPackage =
{ version,
modDirVersion ? version,
...
} @ args:
let
buildLinux' = buildLinux (args // { inherit modDirVersion; });
linuxPackagesFor' = linuxPackagesFor buildLinux';
in recurseIntoAttrs linuxPackagesFor';
}