mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-22 19:09:42 +01:00
surface: make it easier to test kernel builds
This commit is contained in:
parent
6e829b4755
commit
aa10c849a6
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ lib, callPackage, linuxPackagesFor, ... }:
|
||||
# To test the kernel build:
|
||||
# nix-build -E "with import <nixpkgs> {}; (pkgs.callPackage ./linux-5.16.11.nix {}).kernel"
|
||||
let
|
||||
repos = pkgs.callPackage ../repos.nix {};
|
||||
repos = callPackage ../repos.nix {};
|
||||
linuxPkg = { fetchurl, buildLinux, ... }@args:
|
||||
buildLinux (args // rec {
|
||||
version = "5.16.11";
|
||||
|
@ -82,4 +84,4 @@ let
|
|||
};
|
||||
}];
|
||||
} // (args.argsOverride or {}));
|
||||
in with pkgs; recurseIntoAttrs (linuxPackagesFor (callPackage linuxPkg {}))
|
||||
in lib.recurseIntoAttrs (linuxPackagesFor (callPackage linuxPkg {}))
|
||||
|
|
Loading…
Reference in a new issue