mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-08-18 01:06:29 +02:00
23 lines
409 B
Nix
23 lines
409 B
Nix
{ lib,
|
|
buildLinux,
|
|
callPackage,
|
|
linuxPackagesFor,
|
|
}:
|
|
|
|
let
|
|
inherit (lib) recurseIntoAttrs;
|
|
|
|
in {
|
|
repos = callPackage ../repos.nix {};
|
|
|
|
linuxPackage =
|
|
{ version,
|
|
modDirVersion ? version,
|
|
...
|
|
} @ args:
|
|
let
|
|
buildLinux' = buildLinux (args // { inherit modDirVersion; });
|
|
linuxPackagesFor' = linuxPackagesFor buildLinux';
|
|
in recurseIntoAttrs linuxPackagesFor';
|
|
}
|