mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 19:46:10 +01:00
Rearrange the kernels to make them self-defining
This commit is contained in:
parent
f99c9d5b1f
commit
e37520e48b
5 changed files with 188 additions and 162 deletions
23
microsoft/surface/kernel/linux-package.nix
Normal file
23
microsoft/surface/kernel/linux-package.nix
Normal 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';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue