1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

surface: make it easier to test kernel builds

This commit is contained in:
Jörg Thalheim 2022-03-02 07:02:33 +01:00
parent 6e829b4755
commit aa10c849a6
No known key found for this signature in database

View file

@ -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 let
repos = pkgs.callPackage ../repos.nix {}; repos = callPackage ../repos.nix {};
linuxPkg = { fetchurl, buildLinux, ... }@args: linuxPkg = { fetchurl, buildLinux, ... }@args:
buildLinux (args // rec { buildLinux (args // rec {
version = "5.16.11"; version = "5.16.11";
@ -82,4 +84,4 @@ let
}; };
}]; }];
} // (args.argsOverride or {})); } // (args.argsOverride or {}));
in with pkgs; recurseIntoAttrs (linuxPackagesFor (callPackage linuxPkg {})) in lib.recurseIntoAttrs (linuxPackagesFor (callPackage linuxPkg {}))