Advertisement
Guest User

Untitled

a guest
Feb 14th, 2021
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.61 KB | None | 0 0
  1. $ sudo nixos-install --flake '.#miku-nixos' --impure --show-trace
  2. building the flake in git+file:///mnt/etc/nixos?ref=master&rev=263740a4b91eb9f34f03e560ca9af61096f9f261...
  3. error: --- TypeError --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
  4. at: (310:15) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/attrsets.nix
  5.  
  6. 309| let
  7. 310| path' = builtins.storePath path;
  8. | ^
  9. 311| res =
  10.  
  11. cannot coerce a list to a string
  12. ----------------------------------------------------------------------------------------------------------------- show-trace -----------------------------------------------------------------------------------------------------------------
  13. trace: while evaluating the attribute 'passAsFile' of the derivation 'system-path'
  14. at: (7:7) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/pkgs/build-support/trivial-builders.nix
  15.  
  16. 6| stdenv.mkDerivation ({
  17. 7| name = lib.strings.sanitizeDerivationName name;
  18. | ^
  19. 8| inherit buildCommand;
  20.  
  21. trace: while evaluating 'check'
  22. at: (256:15) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/types.nix
  23.  
  24. 255| name = "path";
  25. 256| check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
  26. | ^
  27. 257| merge = mergeEqualOption;
  28.  
  29. trace: from call site
  30. at: (499:22) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  31.  
  32. 498| if isDefined then
  33. 499| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  34. | ^
  35. 500| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  36.  
  37. trace: while evaluating anonymous lambda
  38. at: (499:17) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  39.  
  40. 498| if isDefined then
  41. 499| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  42. | ^
  43. 500| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  44.  
  45. trace: from call site
  46. at: (499:12) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  47.  
  48. 498| if isDefined then
  49. 499| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  50. | ^
  51. 500| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  52.  
  53. trace: while evaluating the attribute 'value'
  54. at: (510:27) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  55.  
  56. 509| optionalValue =
  57. 510| if isDefined then { value = mergedValue; }
  58. | ^
  59. 511| else {};
  60.  
  61. trace: while evaluating anonymous lambda
  62. at: (265:14) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/types.nix
  63.  
  64. 264| merge = loc: defs:
  65. 265| map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
  66. | ^
  67. 266| if isList def.value then
  68.  
  69. trace: from call site
  70. trace: while evaluating the attribute 'serviceDirectories' of the derivation 'dbus-1'
  71. at: (7:7) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/pkgs/build-support/trivial-builders.nix
  72.  
  73. 6| stdenv.mkDerivation ({
  74. 7| name = lib.strings.sanitizeDerivationName name;
  75. | ^
  76. 8| inherit buildCommand;
  77.  
  78. trace: while evaluating 'check'
  79. at: (256:15) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/types.nix
  80.  
  81. 255| name = "path";
  82. 256| check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
  83. | ^
  84. 257| merge = mergeEqualOption;
  85.  
  86. trace: from call site
  87. at: (499:22) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  88.  
  89. 498| if isDefined then
  90. 499| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  91. | ^
  92. 500| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  93.  
  94. trace: while evaluating anonymous lambda
  95. at: (499:17) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  96.  
  97. 498| if isDefined then
  98. 499| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  99. | ^
  100. 500| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  101.  
  102. trace: from call site
  103. at: (499:12) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  104.  
  105. 498| if isDefined then
  106. 499| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  107. | ^
  108. 500| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  109.  
  110. trace: while evaluating the attribute 'mergedValue'
  111. at: (497:5) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  112.  
  113. 496| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
  114. 497| mergedValue =
  115. | ^
  116. 498| if isDefined then
  117.  
  118. trace: while evaluating the option `environment.etc.dbus-1.source':
  119. trace: while evaluating the attribute 'value'
  120. at: (465:9) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  121.  
  122. 464| in warnDeprecation opt //
  123. 465| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
  124. | ^
  125. 466| inherit (res.defsFinal') highestPrio;
  126.  
  127. trace: while evaluating anonymous lambda
  128. at: (98:72) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/modules.nix
  129.  
  130. 97| # For definitions that have an associated option
  131. 98| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
  132. | ^
  133. 99|
  134.  
  135. trace: from call site
  136. at: (279:20) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/attrsets.nix
  137.  
  138. 278| then recurse (path ++ [name]) value
  139. 279| else f (path ++ [name]) value;
  140. | ^
  141. 280| in mapAttrs g set;
  142.  
  143. trace: while evaluating 'g'
  144. at: (276:19) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/attrsets.nix
  145.  
  146. 275| g =
  147. 276| name: value:
  148. | ^
  149. 277| if isAttrs value && cond value
  150.  
  151. trace: from call site
  152. trace: while evaluating the attribute 'source'
  153. trace: while evaluating anonymous lambda
  154. at: (20:20) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/nixos/modules/system/etc/etc.nix
  155.  
  156. 19| /* !!! Use toXML. */
  157. 20| sources = map (x: x.source) etc';
  158. | ^
  159. 21| targets = map (x: x.target) etc';
  160.  
  161. trace: from call site
  162. trace: while evaluating the attribute 'sources' of the derivation 'etc'
  163. at: (12:5) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/nixos/modules/system/etc/etc.nix
  164.  
  165. 11| etc = pkgs.stdenvNoCC.mkDerivation {
  166. 12| name = "etc";
  167. | ^
  168. 13|
  169.  
  170. trace: while evaluating the attribute 'text'
  171. at: (77:38) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/strings-with-deps.nix
  172.  
  173. 76|
  174. 77| stringAfter = deps: text: { inherit text deps; };
  175. | ^
  176. 78|
  177.  
  178. trace: while evaluating the attribute 'text'
  179. at: (9:5) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/nixos/modules/system/activation/activation-script.nix
  180.  
  181. 8| addAttributeName = mapAttrs (a: v: v // {
  182. 9| text = ''
  183. | ^
  184. 10| #### Activation script snippet ${a}:
  185.  
  186. trace: while evaluating 'id'
  187. at: (14:5) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/trivial.nix
  188.  
  189. 13| # The value to return
  190. 14| x: x;
  191. | ^
  192. 15|
  193.  
  194. trace: from call site
  195. trace: while evaluating 'textClosureMap'
  196. at: (70:35) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/lib/strings-with-deps.nix
  197.  
  198. 69|
  199. 70| textClosureMap = f: predefined: names:
  200. | ^
  201. 71| concatStringsSep "\n" (map f (textClosureList predefined names));
  202.  
  203. trace: from call site
  204. at: (89:18) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/nixos/modules/system/activation/activation-script.nix
  205.  
  206. 88| withHeadlines = addAttributeName set';
  207. 89| in textClosureMap id (withHeadlines) (attrNames withHeadlines)
  208. | ^
  209. 90| }
  210.  
  211. trace: while evaluating the attribute 'system.activationScripts.script'
  212. at: (68:9) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/nixos/modules/system/activation/activation-script.nix
  213.  
  214. 67| apply = set: {
  215. 68| script =
  216. | ^
  217. 69| ''
  218.  
  219. trace: while evaluating the attribute 'activationScript' of the derivation 'nixos-system-miku-nixos-20.09.20210213.2118cf5'
  220. at: (95:5) in file: /mnt/nix/store/iv5kvpbswff5m4kfsh0x7vaj1g18axls-source/nixos/modules/system/activation/top-level.nix
  221.  
  222. 94| baseSystem = pkgs.stdenvNoCC.mkDerivation {
  223. 95| name = "nixos-system-${config.system.name}-${config.system.nixos.label}";
  224. | ^
  225. 96| preferLocalBuild = true;
  226.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement