1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00

linux: clearer origin for settings configuration

adds _file so that nix may have a chance to display what file the conflictings settings come
from.
This commit is contained in:
Matthieu Coudron 2019-08-21 22:14:31 +09:00 committed by Matthieu Coudron
parent 29c120c065
commit 2207378c9e
2 changed files with 4 additions and 3 deletions

View file

@ -151,8 +151,8 @@ let
moduleStructuredConfig = (lib.evalModules {
modules = [
module
{ settings = commonStructuredConfig; }
{ settings = structuredExtraConfig; }
{ settings = commonStructuredConfig; _file = "pkgs/os-specific/linux/kernel/common-config.nix"; }
{ settings = structuredExtraConfig; _file = "structuredExtraConfig"; }
]
++ structuredConfigFromPatches
;

View file

@ -278,7 +278,8 @@ in
assert stdenv.lib.versionAtLeast version "4.14" -> libelf != null;
assert stdenv.lib.versionAtLeast version "4.15" -> utillinux != null;
stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.platform kernelPatches configfile) // {
name = "linux-${version}";
pname = "linux";
inherit version;
enableParallelBuilding = true;