git.iko.soy/typeable/nixpkgs
on master help sign in
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>

commit09d349328255660c6e29d37d8e795b004e002226 authoraszlig <aszlig@redmoonstudios.org> dateWed 12 Oct 2016, 23:52 (10 years ago) parentd4a22b4
1 file changed+6−4
pkgs/top-level/all-packages.nix+6−4
pkgs/top-level/all-packages.nix+6−4
@@ -11023,9 +11023,11 @@ in
1102311023 # Intentionally lacks recurseIntoAttrs, as -rc kernels will quite likely break out-of-tree modules and cause failed Hydra builds.
1102411024 linuxPackages_testing = linuxPackagesFor pkgs.linux_testing;
1102511025
11026− linuxPackages_custom = {version, src, configfile}:
11027− recurseIntoAttrs (linuxPackagesFor (pkgs.linuxManualConfig {inherit version src configfile;
11028− allowImportFromDerivation=true;}));
11026+ linuxPackages_custom = { version, src, configfile }:
11027+ recurseIntoAttrs (linuxPackagesFor (pkgs.linuxManualConfig {
11028+ inherit version src configfile;
11029+ allowImportFromDerivation = true;
11030+ }));
1102911031
1103011032 # Build a kernel for Xen dom0
1103111033 linuxPackages_latest_xen_dom0 = recurseIntoAttrs (linuxPackagesFor (pkgs.linux_latest.override { features.xen_dom0=true; }));
@@ -11068,7 +11070,7 @@ in
1106811070
1106911071 # A function to build a manually-configured kernel
1107011072 linuxManualConfig = pkgs.buildLinux;
11071− buildLinux = callPackage ../os-specific/linux/kernel/manual-config.nix {};
11073+ buildLinux = makeOverridable (callPackage ../os-specific/linux/kernel/manual-config.nix {});
1107211074
1107311075 keyutils = callPackage ../os-specific/linux/keyutils { };
1107411076