Skip to content

Instantly share code, notes, and snippets.

@joncol
Created January 20, 2022 20:36
Show Gist options
  • Save joncol/85e7859313d48381dd63d2e3ba097309 to your computer and use it in GitHub Desktop.
Save joncol/85e7859313d48381dd63d2e3ba097309 to your computer and use it in GitHub Desktop.
NixOS error
building the system configuration...
warning: Git tree '/home/jco/nixos-flake' is dirty
error: The ‘gnome.vte’ alias was removed on 2022-01-13. Please use ‘pkgs.vte’ directly.
… while evaluating the attribute 'vte'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/pkgs/desktops/gnome/default.nix:362:3:
361| libgnomekbd = throw "The ‘gnome.libgnomekbd’ alias was removed on 2022-01-13. Please use ‘pkgs.libgnomekbd’ directly."; # added 2019-02-08
362| vte = throw "The ‘gnome.vte’ alias was removed on 2022-01-13. Please use ‘pkgs.vte’ directly."; # added 2019-02-08
| ^
363| vte_290 = throw "The ‘gnome.vte_290’ alias was removed on 2022-01-13. Please use ‘pkgs.vte_290’ directly."; # added 2019-02-08
… while evaluating anonymous lambda
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/attrsets.nix:487:23:
486| */
487| getOutput = output: pkg:
| ^
488| if ! pkg ? outputSpecified || ! pkg.outputSpecified
… from call site
… while evaluating the attribute 'buildInputs' of the derivation 'xfce4-terminal-0.8.10'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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 'passAsFile'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/pkgs/build-support/buildenv/default.nix:77:5:
76| # XXX: The size is somewhat arbitrary
77| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
| ^
78| }
… while evaluating the attribute 'passAsFile' of the derivation 'system-path'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/pkgs/stdenv/generic/make-derivation.nix:205:7:
204| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
205| name =
| ^
206| let
… while evaluating 'check'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/types.nix:362:15:
361| name = "path";
362| check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
| ^
363| merge = mergeEqualOption;
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:647:22:
646| if isDefined then
647| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
| ^
648| else let allInvalid = filter (def: ! type.check def.value) defsFinal;
… while evaluating anonymous lambda
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:647:17:
646| if isDefined then
647| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
| ^
648| else let allInvalid = filter (def: ! type.check def.value) defsFinal;
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:647:12:
646| if isDefined then
647| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
| ^
648| else let allInvalid = filter (def: ! type.check def.value) defsFinal;
… while evaluating the attribute 'value'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:658:27:
657| optionalValue =
658| if isDefined then { value = mergedValue; }
| ^
659| else {};
… while evaluating anonymous lambda
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/types.nix:371:14:
370| merge = loc: defs:
371| map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
| ^
372| imap1 (m: def':
… from call site
… while evaluating the attribute 'serviceDirectories' of the derivation 'dbus-1'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/pkgs/stdenv/generic/make-derivation.nix:205:7:
204| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
205| name =
| ^
206| let
… while evaluating 'check'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/types.nix:362:15:
361| name = "path";
362| check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
| ^
363| merge = mergeEqualOption;
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:647:22:
646| if isDefined then
647| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
| ^
648| else let allInvalid = filter (def: ! type.check def.value) defsFinal;
… while evaluating anonymous lambda
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:647:17:
646| if isDefined then
647| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
| ^
648| else let allInvalid = filter (def: ! type.check def.value) defsFinal;
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:647:12:
646| if isDefined then
647| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
| ^
648| else let allInvalid = filter (def: ! type.check def.value) defsFinal;
… while evaluating the attribute 'mergedValue'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:645:5:
644| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
645| mergedValue =
| ^
646| if isDefined then
… while evaluating the option `environment.etc.dbus-1.source':
… while evaluating the attribute 'value'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:611:9:
610| in warnDeprecation opt //
611| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
612| inherit (res.defsFinal') highestPrio;
… while evaluating anonymous lambda
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:192:72:
191| # For definitions that have an associated option
192| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
193|
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/attrsets.nix:304:20:
303| then recurse (path ++ [name]) value
304| else f (path ++ [name]) value;
| ^
305| in mapAttrs g;
… while evaluating 'g'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/attrsets.nix:301:19:
300| g =
301| name: value:
| ^
302| if isAttrs value && cond value
… from call site
… while evaluating 'escapeShellArg'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/strings.nix:318:20:
317| */
318| escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'";
| ^
319|
… from call site
… while evaluating 'concatMapStringsSep'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/strings.nix:110:5:
109| # List of input strings
110| list: concatStringsSep sep (map f list);
| ^
111|
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/strings.nix:110:5:
109| # List of input strings
110| list: concatStringsSep sep (map f list);
| ^
111|
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:471:44:
470| defnsByName' = byName "config" (module: value:
471| [{ inherit (module) file; inherit value; }]
| ^
472| ) configs;
… while evaluating 'dischargeProperties'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:697:25:
696| */
697| dischargeProperties = def:
| ^
698| if def._type or "" == "merge" then
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:626:137:
625| defs' = concatMap (m:
626| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
627| ) defs;
… while evaluating definitions from `/nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/nixos/modules/system/etc/etc.nix':
… while evaluating anonymous lambda
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:625:28:
624| # Process mkMerge and mkIf properties.
625| defs' = concatMap (m:
| ^
626| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:625:17:
624| # Process mkMerge and mkIf properties.
625| defs' = concatMap (m:
| ^
626| 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/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:738:7:
737| in {
738| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
| ^
739| inherit highestPrio;
… while evaluating the attribute 'values'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:639:9:
638| in {
639| values = defs''';
| ^
640| inherit (defs'') highestPrio;
… while evaluating the attribute 'mergedValue'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:645:5:
644| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
645| mergedValue =
| ^
646| if isDefined then
… while evaluating the option `system.activationScripts.etc.text':
… while evaluating the attribute 'value'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:611:9:
610| in warnDeprecation opt //
611| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
612| inherit (res.defsFinal') highestPrio;
… while evaluating anonymous lambda
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/modules.nix:192:72:
191| # For definitions that have an associated option
192| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
193|
… from call site
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/attrsets.nix:304:20:
303| then recurse (path ++ [name]) value
304| else f (path ++ [name]) value;
| ^
305| in mapAttrs g;
… while evaluating 'g'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/lib/trivial.nix:14:5:
13| # The value to return
14| x: x;
| ^
15|
… from call site
… while evaluating 'textClosureMap'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/nixos/modules/system/activation/activation-script.nix:49:9:
48|
49| ${textClosureMap id (withDrySnippets) (attrNames withDrySnippets)}
| ^
50|
… while evaluating 'systemActivationScript'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/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-nixos-ryzen9-22.05.20220119.6d82152'
at /nix/store/yjs0c0h8nwqjjsy4zdg0nmj611rpjypa-source/pkgs/stdenv/generic/make-derivation.nix:205:7:
204| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
205| name =
| ^
206| let
error: Recipe `rebuild-system` failed with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment