1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2025-01-11 03:19:48 +01:00

Fix for unexpected recursion error

Might be related to how these packages access "pkgs" ?
This commit is contained in:
mexisme 2022-11-28 22:26:47 +13:00
parent 3de7b6e0c5
commit 50ce82cc84
2 changed files with 6 additions and 10 deletions

View file

@ -1,16 +1,12 @@
{ lib, { config, lib, pkgs, ... }:
buildLinux,
callPackage,
linuxPackagesFor,
...
}:
# To test the kernel build: # To test the kernel build:
# nix-build -E "with import <nixpkgs> {}; (pkgs.callPackage ./. {}).boot.kernelPackages.kernel" # nix-build -E "with import <nixpkgs> {}; (pkgs.callPackage ./. {}).boot.kernelPackages.kernel"
let let
inherit (lib) kernel recurseIntoAttrs; inherit (lib) kernel recurseIntoAttrs;
repos = callPackage ../repos.nix {}; inherit (pkgs) buildLinux linuxPackagesFor;
repos = pkgs.callPackage ../repos.nix {};
linuxPackage = linuxPackage =
{ version, { version,
@ -25,11 +21,11 @@ let
modDirVersion = version; modDirVersion = version;
extraMeta.branch = branch; extraMeta.branch = branch;
}; };
linuxPackagesFor' = (linuxPackagesFor buildLinux'); linuxPackagesFor' = linuxPackagesFor buildLinux';
in recurseIntoAttrs linuxPackagesFor'; in recurseIntoAttrs linuxPackagesFor';
linux-5_16_11 = linuxPackage ( linux-5_16_11 = linuxPackage (
callPackage ./linux-5.16.11.nix { inherit repos; } pkgs.callPackage ./linux-5.16.11.nix { inherit repos; }
); );
in { in {

View file

@ -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: # This is the owner and repo for the pre-patched kernel from the "linux-surface" project:
linux-surface-kernel = { rev, sha256 }: linux-surface-kernel = { rev, sha256 }:
fetchFromGitHub { fetchFromGitHub {