Repository navigation
Open
Labels
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS6.topic: user experienceNixOS / Nixpkgs end user experience
Description
Describe the bug
nixos-rebuild switch --show-trace shows this error message and i have no idea what the issue is and how to fix it.
error: attribute 'name' missing
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/pkgs/servers/x11/xorg/overrides.nix:628:69:
627| meta.platforms = lib.platforms.unix;
628| } else throw "unsupported xorg abiCompat ${abiCompat} for ${attrs_passed.name}";
| ^
629|
… while evaluating anonymous lambda
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/pkgs/servers/x11/xorg/overrides.nix:594:59:
593|
594| xorgserver = with self; super.xorgserver.overrideAttrs (attrs_passed:
| ^
595| # exchange attrs if abiCompat is set
… from call site
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/pkgs/stdenv/generic/make-derivation.nix:381:56:
380| ({
381| overrideAttrs = f: stdenv.mkDerivation (attrs // (f attrs));
| ^
382|
… while evaluating 'overrideAttrs'
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/pkgs/stdenv/generic/make-derivation.nix:381:22:
380| ({
381| overrideAttrs = f: stdenv.mkDerivation (attrs // (f attrs));
| ^
382|
… from call site
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:86:32:
85| ${if result ? overrideAttrs then "overrideAttrs" else null} = fdrv:
86| overrideResult (x: x.overrideAttrs fdrv);
| ^
87| }
… while evaluating anonymous lambda
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:86:29:
85| ${if result ? overrideAttrs then "overrideAttrs" else null} = fdrv:
86| overrideResult (x: x.overrideAttrs fdrv);
| ^
87| }
… from call site
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:79:60:
78| # Change the result of the function call by applying g to it
79| overrideResult = g: makeOverridable (copyArgs (args: g (f args))) origArgs;
| ^
80| in
… while evaluating anonymous lambda
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:79:54:
78| # Change the result of the function call by applying g to it
79| overrideResult = g: makeOverridable (copyArgs (args: g (f args))) origArgs;
| ^
80| in
… from call site
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:69:16:
68| let
69| result = f origArgs;
| ^
70|
… while evaluating 'makeOverridable'
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:67:24:
66| */
67| makeOverridable = f: origArgs:
| ^
68| let
… from call site
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:79:27:
78| # Change the result of the function call by applying g to it
79| overrideResult = g: makeOverridable (copyArgs (args: g (f args))) origArgs;
| ^
80| in
… while evaluating 'overrideResult'
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:79:24:
78| # Change the result of the function call by applying g to it
79| overrideResult = g: makeOverridable (copyArgs (args: g (f args))) origArgs;
| ^
80| in
… from call site
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:86:13:
85| ${if result ? overrideAttrs then "overrideAttrs" else null} = fdrv:
86| overrideResult (x: x.overrideAttrs fdrv);
| ^
87| }
… while evaluating 'overrideAttrs'
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/customisation.nix:85:73:
84| overrideDerivation = fdrv: overrideResult (x: overrideDerivation x fdrv);
85| ${if result ? overrideAttrs then "overrideAttrs" else null} = fdrv:
| ^
86| overrideResult (x: x.overrideAttrs fdrv);
… from call site
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/pkgs/servers/x11/xorg/overrides.nix:594:27:
593|
594| xorgserver = with self; super.xorgserver.overrideAttrs (attrs_passed:
| ^
595| # exchange attrs if abiCompat is set
… while evaluating anonymous lambda
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/pkgs/stdenv/generic/make-derivation.nix:156:13:
155| (map (drv: drv.__spliced.hostHost or drv) depsHostHost)
156| (map (drv: drv.crossDrv or drv) buildInputs)
| ^
157| ]
… from call site
… while evaluating 'getOutput'
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/lib/attrsets.nix:489:23:
488| */
489| getOutput = output: pkg:
| ^
490| if ! pkg ? outputSpecified || ! pkg.outputSpecified
… from call site
… while evaluating the attribute 'buildInputs' of the derivation 'xf86-input-evdev-2.10.6'
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/pkgs/stdenv/generic/make-derivation.nix:205:7:
204| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
205| name =
| ^
206| let
… while evaluating the attribute 'value'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:452:44:
451| defnsByName' = byName "config" (module: value:
452| [{ inherit (module) file; inherit value; }]
| ^
453| ) configs;
… while evaluating 'dischargeProperties'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:669:25:
668| */
669| dischargeProperties = def:
| ^
670| if def._type or "" == "merge" then
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:598:137:
597| defs' = concatMap (m:
598| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
599| ) defs;
… while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/xserver.nix':
… while evaluating anonymous lambda
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:597:28:
596| # Process mkMerge and mkIf properties.
597| defs' = concatMap (m:
| ^
598| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:597:17:
596| # Process mkMerge and mkIf properties.
597| defs' = concatMap (m:
| ^
598| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while evaluating the attribute 'values'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:710:7:
709| in {
710| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
| ^
711| inherit highestPrio;
… while evaluating the attribute 'values'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:611:9:
610| in {
611| values = defs''';
| ^
612| inherit (defs'') highestPrio;
… while evaluating the attribute 'mergedValue'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:617:5:
616| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
617| mergedValue =
| ^
618| if isDefined then
… while evaluating the option `environment.etc./X11/xorg.conf.d/10-evdev.conf.source':
… while evaluating the attribute 'value'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:585:9:
584| in warnDeprecation opt //
585| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
586| inherit (res.defsFinal') highestPrio;
… while evaluating anonymous lambda
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:171:72:
170| # For definitions that have an associated option
171| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
172|
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:304:20:
303| then recurse (path ++ [name]) value
304| else f (path ++ [name]) value;
| ^
305| in mapAttrs g set;
… while evaluating 'g'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:301:19:
300| g =
301| name: value:
| ^
302| if isAttrs value && cond value
… from call site
… while evaluating 'escapeShellArg'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:318:20:
317| */
318| escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'";
| ^
319|
… from call site
… while evaluating 'concatMapStringsSep'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:110:5:
109| # List of input strings
110| list: concatStringsSep sep (map f list);
| ^
111|
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:54:43:
53| mkdir -p "$out/etc"
54| ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [
| ^
55| "makeEtcEntry"
… while evaluating anonymous lambda
at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:54:33:
53| mkdir -p "$out/etc"
54| ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [
| ^
55| "makeEtcEntry"
… from call site
… while evaluating 'concatMapStringsSep'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings.nix:110:5:
109| # List of input strings
110| list: concatStringsSep sep (map f list);
| ^
111|
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:54:7:
53| mkdir -p "$out/etc"
54| ${concatMapStringsSep "\n" (etcEntry: escapeShellArgs [
| ^
55| "makeEtcEntry"
… while evaluating the attribute 'buildCommand' of the derivation 'etc'
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/pkgs/stdenv/generic/make-derivation.nix:205:7:
204| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
205| name =
| ^
206| let
… while evaluating the attribute 'value'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:452:44:
451| defnsByName' = byName "config" (module: value:
452| [{ inherit (module) file; inherit value; }]
| ^
453| ) configs;
… while evaluating 'dischargeProperties'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:669:25:
668| */
669| dischargeProperties = def:
| ^
670| if def._type or "" == "merge" then
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:598:137:
597| defs' = concatMap (m:
598| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
599| ) defs;
… while evaluating definitions from `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix':
… while evaluating anonymous lambda
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:597:28:
596| # Process mkMerge and mkIf properties.
597| defs' = concatMap (m:
| ^
598| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:597:17:
596| # Process mkMerge and mkIf properties.
597| defs' = concatMap (m:
| ^
598| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while evaluating the attribute 'values'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:710:7:
709| in {
710| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
| ^
711| inherit highestPrio;
… while evaluating the attribute 'values'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:611:9:
610| in {
611| values = defs''';
| ^
612| inherit (defs'') highestPrio;
… while evaluating the attribute 'mergedValue'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:617:5:
616| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
617| mergedValue =
| ^
618| if isDefined then
… while evaluating the option `system.activationScripts.etc.text':
… while evaluating the attribute 'value'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:585:9:
584| in warnDeprecation opt //
585| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
586| inherit (res.defsFinal') highestPrio;
… while evaluating anonymous lambda
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:171:72:
170| # For definitions that have an associated option
171| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
172|
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:304:20:
303| then recurse (path ++ [name]) value
304| else f (path ++ [name]) value;
| ^
305| in mapAttrs g set;
… while evaluating 'g'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:301:19:
300| g =
301| name: value:
| ^
302| if isAttrs value && cond value
… from call site
… while evaluating the attribute 'text'
at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:9:5:
8| addAttributeName = mapAttrs (a: v: v // {
9| text = ''
| ^
10| #### Activation script snippet ${a}:
… while evaluating 'id'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/trivial.nix:14:5:
13| # The value to return
14| x: x;
| ^
15|
… from call site
… while evaluating 'textClosureMap'
at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/strings-with-deps.nix:75:35:
74|
75| textClosureMap = f: predefined: names:
| ^
76| concatStringsSep "\n" (map f (textClosureList predefined names));
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:49:9:
48|
49| ${textClosureMap id (withDrySnippets) (attrNames withDrySnippets)}
| ^
50|
… while evaluating 'systemActivationScript'
at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:20:33:
19|
20| systemActivationScript = set: onlyDry: let
| ^
21| set' = mapAttrs (_: v: if isString v then (noDepEntry v) // { supportsDryActivation = false; } else v) set;
… from call site
at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:136:18:
135| apply = set: set // {
136| script = systemActivationScript set false;
| ^
137| };
… while evaluating the attribute 'system.activationScripts.script'
at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/activation-script.nix:136:9:
135| apply = set: set // {
136| script = systemActivationScript set false;
| ^
137| };
… while evaluating the attribute 'activationScript' of the derivation 'nixos-system-gaming-21.11.336824.ccb90fb9e11'
at /nix/store/rifmrf8ma50p8hjz60xysvsw0cpg9nf3-nixos-21.11.336824.ccb90fb9e11/nixos/pkgs/stdenv/generic/make-derivation.nix:205:7:
204| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
205| name =
| ^
206| let
Steps To Reproduce
Steps to reproduce the behavior:
# use proprietary gpu driver
services.xserver.videoDrivers = [ "amdgpu-pro" ];
boot.initrd.kernelModules = [ "amdgpu-pro" ];
The issue is that amdgpu-pro is still broken on stable (#78031).
Expected behavior
Helpful error messages.
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
- system:
"x86_64-linux" - host os:
Linux 5.17.1, NixOS, 21.11 (Porcupine) - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.7.0 - channels(root):
"home-manager-21.11, nixos-21.11.336824.ccb90fb9e11, nixos-hardware, nixos-unstable-22.05pre366144.bc4b9eef3ce" - nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos
Reacted by Ezra Celli
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS6.topic: user experienceNixOS / Nixpkgs end user experience
Activity