mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 01:07:14 +08:00 
			
		
		
		
	Fix for unexpected recursion error
Might be related to how these packages access "pkgs" ?
This commit is contained in:
		@@ -1,16 +1,12 @@
 | 
			
		||||
{ lib,
 | 
			
		||||
  buildLinux,
 | 
			
		||||
  callPackage,
 | 
			
		||||
  linuxPackagesFor,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
{ config, lib, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
# To test the kernel build:
 | 
			
		||||
# nix-build -E "with import <nixpkgs> {}; (pkgs.callPackage ./. {}).boot.kernelPackages.kernel"
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) kernel recurseIntoAttrs;
 | 
			
		||||
  repos = callPackage ../repos.nix {};
 | 
			
		||||
  inherit (pkgs) buildLinux linuxPackagesFor;
 | 
			
		||||
  repos = pkgs.callPackage ../repos.nix {};
 | 
			
		||||
 | 
			
		||||
  linuxPackage =
 | 
			
		||||
    { version,
 | 
			
		||||
@@ -25,11 +21,11 @@ let
 | 
			
		||||
        modDirVersion = version;
 | 
			
		||||
        extraMeta.branch = branch;
 | 
			
		||||
      };
 | 
			
		||||
      linuxPackagesFor' = (linuxPackagesFor buildLinux');
 | 
			
		||||
      linuxPackagesFor' = linuxPackagesFor buildLinux';
 | 
			
		||||
    in recurseIntoAttrs linuxPackagesFor';
 | 
			
		||||
 | 
			
		||||
  linux-5_16_11 = linuxPackage (
 | 
			
		||||
    callPackage ./linux-5.16.11.nix { inherit repos; }
 | 
			
		||||
    pkgs.callPackage ./linux-5.16.11.nix { inherit repos; }
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
in {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
{ lib, pkgs, fetchFromGitHub, fetchurl }: {
 | 
			
		||||
{ fetchFromGitHub, fetchurl }: {
 | 
			
		||||
  # This is the owner and repo for the pre-patched kernel from the "linux-surface" project:
 | 
			
		||||
  linux-surface-kernel = { rev, sha256 }:
 | 
			
		||||
    fetchFromGitHub {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user