buildLinux/linuxManualConfig: Allow .override
Regression introduced by da36847d925058fd86f027b64cc712c57be11ad8. The kernelPackages NixOS module option now uses .override to add kernel patches defined in boot.kernelPatches into the kernel within the kernelPackages set. For generic kernels, we already have an .override which comes with callPackage, but pkgs.linuxManualConfig is a function where we want to override the attributes passed to it. The callPackage to manual-config.nix only allows us to override its internal attributes but not the attributes of the function returned. Simplified it looks like this: .----- .override provided by __|__ callPackage | | (callPackage .../manual-config.nix { ... }) { ... } |_____| | the one -----' we actually want to override Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
d4a22b4de3
commit
09d3493282
@ -11023,9 +11023,11 @@ in
|
|||||||
# Intentionally lacks recurseIntoAttrs, as -rc kernels will quite likely break out-of-tree modules and cause failed Hydra builds.
|
# Intentionally lacks recurseIntoAttrs, as -rc kernels will quite likely break out-of-tree modules and cause failed Hydra builds.
|
||||||
linuxPackages_testing = linuxPackagesFor pkgs.linux_testing;
|
linuxPackages_testing = linuxPackagesFor pkgs.linux_testing;
|
||||||
|
|
||||||
linuxPackages_custom = {version, src, configfile}:
|
linuxPackages_custom = { version, src, configfile }:
|
||||||
recurseIntoAttrs (linuxPackagesFor (pkgs.linuxManualConfig {inherit version src configfile;
|
recurseIntoAttrs (linuxPackagesFor (pkgs.linuxManualConfig {
|
||||||
allowImportFromDerivation=true;}));
|
inherit version src configfile;
|
||||||
|
allowImportFromDerivation = true;
|
||||||
|
}));
|
||||||
|
|
||||||
# Build a kernel for Xen dom0
|
# Build a kernel for Xen dom0
|
||||||
linuxPackages_latest_xen_dom0 = recurseIntoAttrs (linuxPackagesFor (pkgs.linux_latest.override { features.xen_dom0=true; }));
|
linuxPackages_latest_xen_dom0 = recurseIntoAttrs (linuxPackagesFor (pkgs.linux_latest.override { features.xen_dom0=true; }));
|
||||||
@ -11068,7 +11070,7 @@ in
|
|||||||
|
|
||||||
# A function to build a manually-configured kernel
|
# A function to build a manually-configured kernel
|
||||||
linuxManualConfig = pkgs.buildLinux;
|
linuxManualConfig = pkgs.buildLinux;
|
||||||
buildLinux = callPackage ../os-specific/linux/kernel/manual-config.nix {};
|
buildLinux = makeOverridable (callPackage ../os-specific/linux/kernel/manual-config.nix {});
|
||||||
|
|
||||||
keyutils = callPackage ../os-specific/linux/keyutils { };
|
keyutils = callPackage ../os-specific/linux/keyutils { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user