mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-16 16:09:40 +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';
|
||
|
}
|