mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
linuxPackagesFor: fix overriding kernel attribute
The "kernel" argument to linuxPackagesFor was taking precedence over the "self.kernel" attribute brought into scope by the "with self;" statement. This prevented the makeExtensible machinery from working correctly when "kernel" was overridden.
This commit is contained in:
parent
f413b2bc51
commit
986a0c5d9a
@ -19105,10 +19105,10 @@ in
|
||||
for a specific kernel. This function can then be called for
|
||||
whatever kernel you're using. */
|
||||
|
||||
linuxPackagesFor = kernel: lib.makeExtensible (self: with self; {
|
||||
linuxPackagesFor = kernel_: lib.makeExtensible (self: with self; {
|
||||
callPackage = newScope self;
|
||||
|
||||
inherit kernel;
|
||||
kernel = kernel_;
|
||||
inherit (kernel) stdenv; # in particular, use the same compiler by default
|
||||
|
||||
# to help determine module compatibility
|
||||
|
Loading…
Reference in New Issue
Block a user