mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-30 14:59:43 +01:00
24 lines
428 B
Nix
24 lines
428 B
Nix
|
{ 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';
|
||
|
}
|