mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 01:37:24 +08:00
Rearrange the kernels to make them self-defining
This commit is contained in:
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';
|
||||
}
|
||||
Reference in New Issue
Block a user