mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-27 05:19:43 +01:00
23 lines
428 B
Nix
23 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';
|
|
}
|