3
0
Fork 0
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:
Ben Wolsieffer 2021-02-03 19:05:30 -05:00 committed by Dmitry Kalinkin
parent f413b2bc51
commit 986a0c5d9a

View file

@ -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