forked from mirrors/nixpkgs
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 a new issue