mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-01 21:43:31 +01:00
Rearrange the kernels to make them self-defining
This commit is contained in:
1 parent
f99c9d5b1f
commit
e37520e48b
5 files changed
+188
-162
No files matched your search
@@ -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';
|
||||
}
|
||||
Reference in new issue
Block a user