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