linux: uncurse arguments
Currently things like `buildLinux { inherit src version; }` fail because of `callPackage` auto-inserting `kernelPatches`, which is both a `buildLinux` argument and a `pkgs` toplevel attribute, with completely different semantics. Avoid that entirely by splitting the call into two - one for arguments we want from `callPackage`, and one for everything else.
This commit is contained in:
parent
56db90d274
commit
424d609df4
@ -12,8 +12,10 @@
|
|||||||
, rustc
|
, rustc
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, rust-bindgen
|
, rust-bindgen
|
||||||
|
, nixosTests
|
||||||
|
}:
|
||||||
|
|
||||||
, # The kernel source tarball.
|
{ # The kernel source tarball.
|
||||||
src
|
src
|
||||||
|
|
||||||
, # The kernel version.
|
, # The kernel version.
|
||||||
@ -66,7 +68,6 @@
|
|||||||
, preferBuiltin ? stdenv.hostPlatform.linux-kernel.preferBuiltin or false
|
, preferBuiltin ? stdenv.hostPlatform.linux-kernel.preferBuiltin or false
|
||||||
, kernelArch ? stdenv.hostPlatform.linuxArch
|
, kernelArch ? stdenv.hostPlatform.linuxArch
|
||||||
, kernelTests ? []
|
, kernelTests ? []
|
||||||
, nixosTests
|
|
||||||
, ...
|
, ...
|
||||||
}@args:
|
}@args:
|
||||||
|
|
||||||
|
@ -713,6 +713,5 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
buildLinux = attrs: callPackage ../os-specific/linux/kernel/generic.nix attrs;
|
buildLinux = callPackage ../os-specific/linux/kernel/generic.nix {};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user