Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.80 KB | None | 0 0
  1. warning: Git tree '/Users/kloenk/nix' is dirty
  2. warning: Git tree '/Users/kloenk/nix' is dirty
  3. warning: Git tree '/Users/kloenk/Documents/proj/home-manager' is dirty
  4. warning: Git tree '/Users/kloenk/Documents/proj/home-manager' is dirty
  5. error: --- TypeError --- nix
  6. at: (116:60) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  7.  
  8. 115| */
  9. 116| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
  10. | ^
  11. 117|
  12.  
  13. value is a function while a list was expected
  14. ---- show-trace ----
  15. trace: while evaluating 'imap1'
  16. at: (116:14) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  17.  
  18. 115| */
  19. 116| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
  20. | ^
  21. 117|
  22.  
  23. trace: from call site
  24. at: (146:73) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  25.  
  26. 145| };
  27. 146| in parentFile: parentKey: initialModules: args: collectResults (imap1 (n: x:
  28. | ^
  29. 147| let
  30.  
  31. trace: while evaluating the attribute 'disabled'
  32. at: (143:13) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  33.  
  34. 142| collectResults = modules: {
  35. 143| disabled = concatLists (catAttrs "disabled" modules);
  36. | ^
  37. 144| inherit modules;
  38.  
  39. trace: while evaluating the attribute 'disabled'
  40. at: (143:13) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  41.  
  42. 142| collectResults = modules: {
  43. 143| disabled = concatLists (catAttrs "disabled" modules);
  44. | ^
  45. 144| inherit modules;
  46.  
  47. trace: while evaluating anonymous lambdaction
  48. at: (165:31) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  49.  
  50. 164| disabledKeys = map moduleKey disabled;
  51. 165| keyFilter = filter (attrs: ! elem attrs.key disabledKeys);
  52. | ^
  53. 166| in map (attrs: attrs.module) (builtins.genericClosure {
  54.  
  55. trace: from call site
  56. trace: while evaluating 'filterModules'
  57. at: (161:36) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  58.  
  59. 160| # modules recursively. It returns the final list of unique-by-key modules
  60. 161| filterModules = modulesPath: { disabled, modules }:
  61. | ^
  62. 162| let
  63.  
  64. trace: from call site
  65. at: (172:7) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  66.  
  67. 171| in modulesPath: initialModules: args:
  68. 172| filterModules modulesPath (collectStructuredModules unknownModule "" initialModules args);
  69. | ^
  70. 173|
  71.  
  72. trace: while evaluating anonymous lambdaction
  73. at: (171:37) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  74.  
  75. 170|
  76. 171| in modulesPath: initialModules: args:
  77. | ^
  78. 172| filterModules modulesPath (collectStructuredModules unknownModule "" initialModules args);
  79.  
  80. trace: from call site
  81. at: (68:19) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  82.  
  83. 67|
  84. 68| collected = collectModules
  85. | ^
  86. 69| (specialArgs.modulesPath or "")
  87.  
  88. trace: while evaluating 'reverseList'
  89. at: (393:17) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  90.  
  91. 392| */
  92. 393| reverseList = xs:
  93. | ^
  94. 394| let l = length xs; in genList (n: elemAt xs (l - n - 1)) l;
  95.  
  96. trace: from call site
  97. at: (73:38) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  98.  
  99. 72|
  100. 73| options = mergeModules prefix (reverseList collected);
  101. | ^
  102. 74|
  103.  
  104. trace: while evaluating 'byName'
  105. at: (264:25) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  106.  
  107. 263| */
  108. 264| byName = attr: f: modules:
  109. | ^
  110. 265| foldl' (acc: module:
  111.  
  112. trace: from call site
  113. at: (272:21) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  114.  
  115. 271| error: --- TypeError --- nix
  116. at: (116:60) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  117.  
  118. 115| */
  119. 116| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
  120. | ^
  121. 117|
  122.  
  123. value is a function while a list was expected
  124. ---- show-trace ----
  125. trace: while evaluating 'imap1'
  126. at: (116:14) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  127.  
  128. 115| */
  129. 116| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
  130. | ^
  131. 117|
  132.  
  133. trace: from call site
  134. at: (146:73) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  135.  
  136. 145| };
  137. 146| in parentFile: parentKey: initialModules: args: collectResults (imap1 (n: x:
  138. | ^
  139. 147| let
  140.  
  141. trace: while evaluating the attribute 'disabled'
  142. at: (143:13) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  143.  
  144. 142| collectResults = modules: {
  145. 143| disabled = concatLists (catAttrs "disabled" modules);
  146. | ^
  147. 144| inherit modules;
  148.  
  149. trace: while evaluating the attribute 'disabled'
  150. at: (143:13) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  151.  
  152. 142| collectResults = modules: {
  153. 143| disabled = concatLists (catAttrs "disabled" modules);
  154. | ^
  155. 144| inherit modules;
  156.  
  157. trace: while evaluating anonymous lambdaction
  158. at: (165:31) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  159.  
  160. 164| disabledKeys = map moduleKey disabled;
  161. 165| keyFilter = filter (attrs: ! elem attrs.key disabledKeys);
  162. | ^
  163. 166| in map (attrs: attrs.module) (builtins.genericClosure {
  164.  
  165. trace: from call site
  166. trace: while evaluating 'filterModules'
  167. at: (161:36) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  168.  
  169. 160| # modules recursively. It returns the final list of unique-by-key modules
  170. 161| filterModules = modulesPath: { disabled, modules }:
  171. | ^
  172. 162| let
  173.  
  174. trace: from call site
  175. at: (172:7) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  176.  
  177. 171| in modulesPath: initialModules: args:
  178. 172| filterModules modulesPath (collectStructuredModules unknownModule "" initialModules args);
  179. | ^
  180. 173|
  181.  
  182. trace: while evaluating anonymous lambdaction
  183. at: (171:37) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  184.  
  185. 170|
  186. 171| in modulesPath: initialModules: args:
  187. | ^
  188. 172| filterModules modulesPath (collectStructuredModules unknownModule "" initialModules args);
  189.  
  190. trace: from call site
  191. at: (68:19) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  192.  
  193. 67|
  194. 68| collected = collectModules
  195. | ^
  196. 69| (specialArgs.modulesPath or "")
  197.  
  198. trace: while evaluating 'reverseList'
  199. at: (393:17) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  200.  
  201. 392| */
  202. 393| reverseList = xs:
  203. | ^
  204. 394| let l = length xs; in genList (n: elemAt xs (l - n - 1)) l;
  205.  
  206. trace: from call site
  207. at: (73:38) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  208.  
  209. 72|
  210. 73| options = mergeModules prefix (reverseList collected);
  211. | ^
  212. 74|
  213.  
  214. trace: while evaluating 'byName'
  215. at: (264:25) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  216.  
  217. 263| */
  218. 264| byName = attr: f: modules:
  219. | ^
  220. 265| foldl' (acc: module:
  221.  
  222. trace: from call site
  223. at: (272:21) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  224.  
  225. 271| # an attrset 'name' => list of submodules that declare ‘name’.
  226. 272| declsByName = byName "options" (module: option:
  227. | ^
  228. 273| [{ inherit (module) _file; options = option; }]
  229.  
  230. trace: while evaluating 'flip'
  231. at: (138:16) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/trivial.nix
  232.  
  233. 137| */
  234. 138| flip = f: a: b: f b a;
  235. | ^
  236. 139|
  237.  
  238. trace: from call site
  239. at: (284:6) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  240.  
  241. 283| in
  242. 284| (flip mapAttrs declsByName (name: decls:
  243. | ^
  244. 285| # We're descending into attribute ‘name’.
  245.  
  246. trace: while evaluating 'mergeModules''
  247. at: (241:36) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  248.  
  249. 240|
  250. 241| mergeModules' = prefix: options: configs:
  251. | ^
  252. 242| let
  253.  
  254. trace: from call site
  255. at: (238:5) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  256.  
  257. 237| mergeModules = prefix: modules:
  258. 238| mergeModules' prefix modules
  259. | ^
  260. 239| (concatMap (m: map (config: { file = m._file; inherit config; }) (pushDownProperties m.config)) modules);
  261.  
  262. trace: while evaluating 'mergeModules'
  263. at: (237:26) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  264.  
  265. 236| in the ‘value’ attribute of each option. */
  266. 237| mergeModules = prefix: modules:
  267. | ^
  268. 238| mergeModules' prefix modules
  269.  
  270. trace: from call site
  271. at: (73:17) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  272.  
  273. 72|
  274. 73| options = mergeModules prefix (reverseList collected);
  275. | ^
  276. 74|
  277.  
  278. trace: while evaluating 'yieldConfig'
  279. at: (83:29) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  280.  
  281. 82| config = yieldConfig prefix options;
  282. 83| yieldConfig = prefix: set:
  283. | ^
  284. 84| let res = removeAttrs (mapAttrs (n: v:
  285.  
  286. trace: from call site
  287. at: (82:16) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  288.  
  289. 81| # and only do the check in 'result'.
  290. 82| config = yieldConfig prefix options;
  291. | ^
  292. 83| yieldConfig = prefix: set:
  293.  
  294. trace: while evaluating the attribute 'config'
  295. at: (98:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  296.  
  297. 97| inherit options;
  298. 98| config = removeAttrs config [ "_module" ];
  299. | ^
  300. 99| inherit (config) _module;
  301.  
  302. trace: while evaluating 'merge'
  303. at: (493:22) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  304.  
  305. 492| check = x: isAttrs x || isFunction x || path.check x;
  306. 493| merge = loc: defs:
  307. | ^
  308. 494| (evalModules {
  309.  
  310. trace: from call site
  311. at: (417:59) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  312.  
  313. 416| if isDefined then
  314. 417| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  315. | ^
  316. 418| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  317.  
  318. trace: while evaluating the attribute 'value'
  319. at: (428:27) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  320.  
  321. 427| optionalValue =
  322. 428| if isDefined then { value = mergedValue; }
  323. | ^
  324. 429| else {};
  325.  
  326. trace: while evaluating anonymous lambdaction
  327. at: (293:22) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  328.  
  329. 292| merge = loc: defs:
  330. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  331. | ^
  332. 294| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue
  333.  
  334. trace: from call site
  335. trace: while evaluating the attrib # an attrset 'name' => list of submodules that declare ‘name’.
  336. 272| declsByName = byName "options" (module: option:
  337. | ^
  338. 273| [{ inherit (module) _file; options = option; }]
  339.  
  340. trace: while evaluating 'flip'
  341. at: (138:16) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/trivial.nix
  342.  
  343. 137| */
  344. 138| flip = f: a: b: f b a;
  345. | ^
  346. 139|
  347.  
  348. trace: from call site
  349. at: (284:6) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  350.  
  351. 283| in
  352. 284| (flip mapAttrs declsByName (name: decls:
  353. | ^
  354. 285| # We're descending into attribute ‘name’.
  355.  
  356. trace: while evaluating 'mergeModules''
  357. at: (241:36) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  358.  
  359. 240|
  360. 241| mergeModules' = prefix: options: configs:
  361. | ^
  362. 242| let
  363.  
  364. trace: from call site
  365. at: (238:5) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  366.  
  367. 237| mergeModules = prefix: modules:
  368. 238| mergeModules' prefix modules
  369. | ^
  370. 239| (concatMap (m: map (config: { file = m._file; inherit config; }) (pushDownProperties m.config)) modules);
  371.  
  372. trace: while evaluating 'mergeModules'
  373. at: (237:26) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  374.  
  375. 236| in the ‘value’ attribute of each option. */
  376. 237| mergeModules = prefix: modules:
  377. | ^
  378. 238| mergeModules' prefix modules
  379.  
  380. trace: from call site
  381. at: (73:17) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  382.  
  383. 72|
  384. 73| options = mergeModules prefix (reverseList collected);
  385. | ^
  386. 74|
  387.  
  388. trace: while evaluating 'yieldConfig'
  389. at: (83:29) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  390.  
  391. 82| config = yieldConfig prefix options;
  392. 83| yieldConfig = prefix: set:
  393. | ^
  394. 84| let res = removeAttrs (mapAttrs (n: v:
  395.  
  396. trace: from call site
  397. at: (82:16) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  398.  
  399. 81| # and only do the check in 'result'.
  400. 82| config = yieldConfig prefix options;
  401. | ^
  402. 83| yieldConfig = prefix: set:
  403.  
  404. trace: while evaluating the attribute 'config'
  405. at: (98:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  406.  
  407. 97| inherit options;
  408. 98| config = removeAttrs config [ "_module" ];
  409. | ^
  410. 99| inherit (config) _module;
  411.  
  412. trace: while evaluating 'merge'
  413. at: (493:22) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  414.  
  415. 492| check = x: isAttrs x || isFunction x || path.check x;
  416. 493| merge = loc: defs:
  417. | ^
  418. 494| (evalModules {
  419.  
  420. trace: from call site
  421. at: (417:59) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  422.  
  423. 416| if isDefined then
  424. 417| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  425. | ^
  426. 418| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  427.  
  428. trace: while evaluating the attribute 'value'
  429. at: (428:27) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  430.  
  431. 427| optionalValue =
  432. 428| if isDefined then { value = mergedValue; }
  433. | ^
  434. 429| else {};
  435.  
  436. trace: while evaluating anonymous lambdaction
  437. at: (293:22) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  438.  
  439. 292| merge = loc: defs:
  440. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  441. | ^
  442. 294| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue
  443.  
  444. trace: from call site
  445. trace: while evaluating the attribute 'kloenk'
  446. trace: while evaluating 'flip'
  447. at: (138:16) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/trivial.nix
  448.  
  449. 137| */
  450. 138| flip = f: a: b: f b a;
  451. | ^
  452. 139|
  453.  
  454. trace: from call site
  455. at: (62:9) in file: /nix/store/yjjj2fbv7g5a08w3hb2prxw8h4vrwffi-source/nix-darwin/default.nix
  456.  
  457. 61| flatten (flip mapAttrsToList cfg.users (user: config:
  458. 62| flip map config.assertions (assertion:
  459. | ^
  460. 63| {
  461.  
  462. trace: while evaluating anonymous lambdaction
  463. at: (61:53) in file: /nix/store/yjjj2fbv7g5a08w3hb2prxw8h4vrwffi-source/nix-darwin/default.nix
  464.  
  465. 60| assertions =
  466. 61| flatten (flip mapAttrsToList cfg.users (user: config:
  467. | ^
  468. 62| flip map config.assertions (assertion:
  469.  
  470. trace: from call site
  471. at: (234:16) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  472.  
  473. 233| mapAttrsToList = f: attrs:
  474. 234| map (name: f name attrs.${name}) (attrNames attrs);
  475. | ^
  476. 235|
  477.  
  478. trace: while evaluating anonymous lambdaction
  479. at: (234:10) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  480.  
  481. 233| mapAttrsToList = f: attrs:
  482. 234| map (name: f name attrs.${name}) (attrNames attrs);
  483. | ^
  484. 235|
  485.  
  486. trace: from call site
  487. trace: while evaluating 'flatten'
  488. at: (137:13) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  489.  
  490. 136| */
  491. 137| flatten = x:
  492. | ^
  493. 138| if isList x
  494.  
  495. trace: from call site
  496. at: (139:24) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  497.  
  498. 138| if isList x
  499. 139| then concatMap (y: flatten y) x
  500. | ^
  501. 140| else [x];
  502.  
  503. trace: while evaluating anonymous lambdaction
  504. at: (139:21) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  505.  
  506. 138| if isList x
  507. 139| then concatMap (y: flatten y) x
  508. | ^
  509. 140| else [x];
  510.  
  511. trace: from call site
  512. at: (139:10) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  513.  
  514. 138| if isList x
  515. 139| then concatMap (y: flatten y) x
  516. | ^
  517. 140| else [x];
  518.  
  519. trace: while evaluating 'flatten'
  520. at: (137:13) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  521.  
  522. 136| */
  523. 137| flatten = x:
  524. | ^
  525. 138| if isList x
  526.  
  527. trace: from call site
  528. at: (61:7) in file: /nix/store/yjjj2fbv7g5a08w3hb2prxw8h4vrwffi-source/nix-darwin/default.nix
  529.  
  530. 60| assertions =
  531. 61| flatten (flip mapAttrsToList cfg.users (user: config:
  532. | ^
  533. 62| flip map config.assertions (assertion:
  534.  
  535. trace: while evaluating the attribute 'content'
  536. at: (552:14) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  537.  
  538. 551| { _type = "if";
  539. 552| inherit condition content;
  540. | ^
  541. 553| };
  542.  
  543. trace: while evaluating 'dischargeProperties'
  544. at: (467:25) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  545.  
  546. 466| */
  547. 467| dischargeProperties = def:
  548. | ^
  549. 468| if def._type or "" == "merge" then
  550.  
  551. trace: from call site
  552. at: (473:11) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  553.  
  554. 472| if def.condition then
  555. 473| dischargeProperties def.content
  556. | ^
  557. 474| else
  558.  
  559. trace: while evaluating 'dischargeProperties'
  560. at: (467:25) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  561.  
  562. 466| */
  563. 467| dischargeProperties = def:
  564. | ^
  565. 468| if def._type or "" == "merge" then
  566.  
  567. trace: from call site
  568. at: (396:137) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  569.  
  570. 395| defs' = concatMap (m:
  571. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `$ute 'kloenk'
  572. trace: while evaluating 'flip'
  573. at: (138:16) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/trivial.nix
  574.  
  575. 137| */
  576. 138| flip = f: a: b: f b a;
  577. | ^
  578. 139|
  579.  
  580. trace: from call site
  581. at: (62:9) in file: /nix/store/yjjj2fbv7g5a08w3hb2prxw8h4vrwffi-source/nix-darwin/default.nix
  582.  
  583. 61| flatten (flip mapAttrsToList cfg.users (user: config:
  584. 62| flip map config.assertions (assertion:
  585. | ^
  586. 63| {
  587.  
  588. trace: while evaluating anonymous lambdaction
  589. at: (61:53) in file: /nix/store/yjjj2fbv7g5a08w3hb2prxw8h4vrwffi-source/nix-darwin/default.nix
  590.  
  591. 60| assertions =
  592. 61| flatten (flip mapAttrsToList cfg.users (user: config:
  593. | ^
  594. 62| flip map config.assertions (assertion:
  595.  
  596. trace: from call site
  597. at: (234:16) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  598.  
  599. 233| mapAttrsToList = f: attrs:
  600. 234| map (name: f name attrs.${name}) (attrNames attrs);
  601. | ^
  602. 235|
  603.  
  604. trace: while evaluating anonymous lambdaction
  605. at: (234:10) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  606.  
  607. 233| mapAttrsToList = f: attrs:
  608. 234| map (name: f name attrs.${name}) (attrNames attrs);
  609. | ^
  610. 235|
  611.  
  612. trace: from call site
  613. trace: while evaluating 'flatten'
  614. at: (137:13) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  615.  
  616. 136| */
  617. 137| flatten = x:
  618. | ^
  619. 138| if isList x
  620.  
  621. trace: from call site
  622. at: (139:24) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  623.  
  624. 138| if isList x
  625. 139| then concatMap (y: flatten y) x
  626. | ^
  627. 140| else [x];
  628.  
  629. trace: while evaluating anonymous lambdaction
  630. at: (139:21) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  631.  
  632. 138| if isList x
  633. 139| then concatMap (y: flatten y) x
  634. | ^
  635. 140| else [x];
  636.  
  637. trace: from call site
  638. at: (139:10) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  639.  
  640. 138| if isList x
  641. 139| then concatMap (y: flatten y) x
  642. | ^
  643. 140| else [x];
  644.  
  645. trace: while evaluating 'flatten'
  646. at: (137:13) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/lists.nix
  647.  
  648. 136| */
  649. 137| flatten = x:
  650. | ^
  651. 138| if isList x
  652.  
  653. trace: from call site
  654. at: (61:7) in file: /nix/store/yjjj2fbv7g5a08w3hb2prxw8h4vrwffi-source/nix-darwin/default.nix
  655.  
  656. 60| assertions =
  657. 61| flatten (flip mapAttrsToList cfg.users (user: config:
  658. | ^
  659. 62| flip map config.assertions (assertion:
  660.  
  661. trace: while evaluating the attribute 'content'
  662. at: (552:14) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  663.  
  664. 551| { _type = "if";
  665. 552| inherit condition content;
  666. | ^
  667. 553| };
  668.  
  669. trace: while evaluating 'dischargeProperties'
  670. at: (467:25) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  671.  
  672. 466| */
  673. 467| dischargeProperties = def:
  674. | ^
  675. 468| if def._type or "" == "merge" then
  676.  
  677. trace: from call site
  678. at: (473:11) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  679.  
  680. 472| if def.condition then
  681. 473| dischargeProperties def.content
  682. | ^
  683. 474| else
  684.  
  685. trace: while evaluating 'dischargeProperties'
  686. at: (467:25) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  687.  
  688. 466| */
  689. 467| dischargeProperties = def:
  690. | ^
  691. 468| if def._type or "" == "merge" then
  692.  
  693. trace: from call site
  694. at: (396:137) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  695.  
  696. 395| defs' = concatMap (m:
  697. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  698. | ^
  699. 397| ) defs;
  700.  
  701. trace: while evaluating definitions from `/nix/store/sn4c59vxs795xad8i4rv67bd6m8j4vnn-default.nix':
  702. trace: while evaluating anonymous lambdaction
  703. at: (395:28) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  704.  
  705. 394| # Process mkMerge and mkIf properties.
  706. 395| defs' = concatMap (m:
  707. | ^
  708. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  709.  
  710. trace: from call site
  711. at: (395:17) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  712.  
  713. 394| # Process mkMerge and mkIf properties.
  714. 395| defs' = concatMap (m:
  715. | ^
  716. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  717.  
  718. trace: while evaluating the attribute 'values'
  719. at: (508:7) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  720.  
  721. 507| in {
  722. 508| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
  723. | ^
  724. 509| inherit highestPrio;
  725.  
  726. trace: while evaluating the attribute 'values'
  727. at: (409:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  728.  
  729. 408| in {
  730. 409| values = defs''';
  731. | ^
  732. 410| inherit (defs'') highestPrio;
  733.  
  734. trace: while evaluating the attribute 'mergedValue'
  735. at: (415:5) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  736.  
  737. 414| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
  738. 415| mergedValue =
  739. | ^
  740. 416| if isDefined then
  741.  
  742. trace: while evaluating the option `assertions':
  743. trace: while evaluating the attribute 'value'
  744. at: (383:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  745.  
  746. 382| in opt //
  747. 383| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
  748. | ^
  749. 384| inherit (res.defsFinal') highestPrio;
  750.  
  751. trace: while evaluating anonymous lambdaction
  752. at: (84:45) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  753.  
  754. 83| yieldConfig = prefix: set:
  755. 84| let res = removeAttrs (mapAttrs (n: v:
  756. | ^
  757. 85| if isOption v then v.value
  758.  
  759. trace: from call site
  760. trace: while evaluating the attribute 'assertions'
  761. trace: while evaluating 'throwAssertions'
  762. at: (13:21) in file: /nix/store/80rvmwcqq3mvdqz69z6hjxhcs84agdkh-source/modules/system/default.nix
  763.  
  764. 12|
  765. 13| throwAssertions = res: if (failedAssertions != []) then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" else res;
  766. | ^
  767. 14| showWarnings = res: fold (w: x: builtins.trace "warning: ${w}" x) res config.warnings;
  768.  
  769. trace: from call site
  770. at: (73:29) in file: /nix/store/80rvmwcqq3mvdqz69z6hjxhcs84agdkh-source/modules/system/default.nix
  771.  
  772. 72|
  773. 73| system.build.toplevel = throwAssertions (showWarnings (stdenvNoCC.mkDerivation {
  774. | ^
  775. 74| name = "darwin-system-${cfg.darwinLabel}";
  776.  
  777. trace: while evaluating the attribute 'value'
  778. at: (297:60) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  779.  
  780. 296| # Push down position info.
  781. 297| (map (def: mapAttrs (n: v: { inherit (def) file; value = v; }) def.value) defs)));
  782. | ^
  783. 298| emptyValue = { value = {}; };
  784.  
  785. trace: while evaluating 'dischargeProperties'
  786. at: (467:25) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybx{m.file}':" (dischargeProperties m.value))
  787. | ^
  788. 397| ) defs;
  789.  
  790. trace: while evaluating definitions from `/nix/store/sn4c59vxs795xad8i4rv67bd6m8j4vnn-default.nix':
  791. trace: while evaluating anonymous lambdaction
  792. at: (395:28) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  793.  
  794. 394| # Process mkMerge and mkIf properties.
  795. 395| defs' = concatMap (m:
  796. | ^
  797. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  798.  
  799. trace: from call site
  800. at: (395:17) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  801.  
  802. 394| # Process mkMerge and mkIf properties.
  803. 395| defs' = concatMap (m:
  804. | ^
  805. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  806.  
  807. trace: while evaluating the attribute 'values'
  808. at: (508:7) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  809.  
  810. 507| in {
  811. 508| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
  812. | ^
  813. 509| inherit highestPrio;
  814.  
  815. trace: while evaluating the attribute 'values'
  816. at: (409:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  817.  
  818. 408| in {
  819. 409| values = defs''';
  820. | ^
  821. 410| inherit (defs'') highestPrio;
  822.  
  823. trace: while evaluating the attribute 'mergedValue'
  824. at: (415:5) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  825.  
  826. 414| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
  827. 415| mergedValue =
  828. | ^
  829. 416| if isDefined then
  830.  
  831. trace: while evaluating the option `assertions':
  832. trace: while evaluating the attribute 'value'
  833. at: (383:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  834.  
  835. 382| in opt //
  836. 383| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
  837. | ^
  838. 384| inherit (res.defsFinal') highestPrio;
  839.  
  840. trace: while evaluating anonymous lambdaction
  841. at: (84:45) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  842.  
  843. 83| yieldConfig = prefix: set:
  844. 84| let res = removeAttrs (mapAttrs (n: v:
  845. | ^
  846. 85| if isOption v then v.value
  847.  
  848. trace: from call site
  849. trace: while evaluating the attribute 'assertions'
  850. trace: while evaluating 'throwAssertions'
  851. at: (13:21) in file: /nix/store/80rvmwcqq3mvdqz69z6hjxhcs84agdkh-source/modules/system/default.nix
  852.  
  853. 12|
  854. 13| throwAssertions = res: if (failedAssertions != []) then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" else res;
  855. | ^
  856. 14| showWarnings = res: fold (w: x: builtins.trace "warning: ${w}" x) res config.warnings;
  857.  
  858. trace: from call site
  859. at: (73:29) in file: /nix/store/80rvmwcqq3mvdqz69z6hjxhcs84agdkh-source/modules/system/default.nix
  860.  
  861. 72|
  862. 73| system.build.toplevel = throwAssertions (showWarnings (stdenvNoCC.mkDerivation {
  863. | ^
  864. 74| name = "darwin-system-${cfg.darwinLabel}";
  865.  
  866. trace: while evaluating the attribute 'value'
  867. at: (297:60) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  868.  
  869. 296| # Push down position info.
  870. 297| (map (def: mapAttrs (n: v: { inherit (def) file; value = v; }) def.value) defs)));
  871. | ^
  872. 298| emptyValue = { value = {}; };
  873.  
  874. trace: while evaluating 'dischargeProperties'
  875. at: (467:25) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  876.  
  877. 466| */
  878. 467| dischargeProperties = def:
  879. | ^
  880. 468| if def._type or "" == "merge" then
  881.  
  882. trace: from call site
  883. at: (396:137) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  884.  
  885. 395| defs' = concatMap (m:
  886. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  887. | ^
  888. 397| ) defs;
  889.  
  890. trace: while evaluating definitions from `/nix/store/80rvmwcqq3mvdqz69z6hjxhcs84agdkh-source/modules/system':
  891. trace: while evaluating anonymous lambdaction
  892. at: (395:28) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  893.  
  894. 394| # Process mkMerge and mkIf properties.
  895. 395| defs' = concatMap (m:
  896. | ^
  897. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  898.  
  899. trace: from call site
  900. at: (395:17) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  901.  
  902. 394| # Process mkMerge and mkIf properties.
  903. 395| defs' = concatMap (m:
  904. | ^
  905. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  906.  
  907. trace: while evaluating the attribute 'values'
  908. at: (508:7) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  909.  
  910. 507| in {
  911. 508| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
  912. | ^
  913. 509| inherit highestPrio;
  914.  
  915. trace: while evaluating the attribute 'values'
  916. at: (409:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  917.  
  918. 408| in {
  919. 409| values = defs''';
  920. | ^
  921. 410| inherit (defs'') highestPrio;
  922.  
  923. trace: while evaluating the attribute 'optionalValue'
  924. at: (427:5) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  925.  
  926. 426|
  927. 427| optionalValue =
  928. | ^
  929. 428| if isDefined then { value = mergedValue; }
  930.  
  931. trace: while evaluating anonymous lambdaction
  932. at: (293:86) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  933.  
  934. 292| merge = loc: defs:
  935. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  936. | ^
  937. 294| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue
  938.  
  939. trace: from call site
  940. at: (344:15) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  941.  
  942. 343| inherit name;
  943. 344| value = f name (catAttrs name sets);
  944. | ^
  945. 345| }) names);
  946.  
  947. trace: while evaluating the attribute 'toplevel'
  948. at: (344:7) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  949.  
  950. 343| inherit name;
  951. 344| value = f name (catAttrs name sets);
  952. | ^
  953. 345| }) names);
  954.  
  955. trace: while evaluating anonymous lambdaction
  956. at: (293:51) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  957.  
  958. 292| merge = loc: defs:
  959. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  960. | ^
  961. 294| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue
  962.  
  963. trace: from call site
  964. at: (125:62) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  965.  
  966. 124| filterAttrs = pred: set:
  967. 125| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
  968. | zxz-source/lib/modules.nix
  969.  
  970. 466| */
  971. 467| dischargeProperties = def:
  972. | ^
  973. 468| if def._type or "" == "merge" then
  974.  
  975. trace: from call site
  976. at: (396:137) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  977.  
  978. 395| defs' = concatMap (m:
  979. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  980. | ^
  981. 397| ) defs;
  982.  
  983. trace: while evaluating definitions from `/nix/store/80rvmwcqq3mvdqz69z6hjxhcs84agdkh-source/modules/system':
  984. trace: while evaluating anonymous lambdaction
  985. at: (395:28) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  986.  
  987. 394| # Process mkMerge and mkIf properties.
  988. 395| defs' = concatMap (m:
  989. | ^
  990. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  991.  
  992. trace: from call site
  993. at: (395:17) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  994.  
  995. 394| # Process mkMerge and mkIf properties.
  996. 395| defs' = concatMap (m:
  997. | ^
  998. 396| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
  999.  
  1000. trace: while evaluating the attribute 'values'
  1001. at: (508:7) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1002.  
  1003. 507| in {
  1004. 508| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
  1005. | ^
  1006. 509| inherit highestPrio;
  1007.  
  1008. trace: while evaluating the attribute 'values'
  1009. at: (409:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1010.  
  1011. 408| in {
  1012. 409| values = defs''';
  1013. | ^
  1014. 410| inherit (defs'') highestPrio;
  1015.  
  1016. trace: while evaluating the attribute 'optionalValue'
  1017. at: (427:5) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1018.  
  1019. 426|
  1020. 427| optionalValue =
  1021. | ^
  1022. 428| if isDefined then { value = mergedValue; }
  1023.  
  1024. trace: while evaluating anonymous lambdaction
  1025. at: (293:86) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  1026.  
  1027. 292| merge = loc: defs:
  1028. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  1029. | ^
  1030. 294| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue
  1031.  
  1032. trace: from call site
  1033. at: (344:15) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  1034.  
  1035. 343| inherit name;
  1036. 344| value = f name (catAttrs name sets);
  1037. | ^
  1038. 345| }) names);
  1039.  
  1040. trace: while evaluating the attribute 'toplevel'
  1041. at: (344:7) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  1042.  
  1043. 343| inherit name;
  1044. 344| value = f name (catAttrs name sets);
  1045. | ^
  1046. 345| }) names);
  1047.  
  1048. trace: while evaluating anonymous lambdaction
  1049. at: (293:51) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  1050.  
  1051. 292| merge = loc: defs:
  1052. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  1053. | ^
  1054. 294| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue
  1055.  
  1056. trace: from call site
  1057. at: (125:62) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  1058.  
  1059. 124| filterAttrs = pred: set:
  1060. 125| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
  1061. | ^
  1062. 126|
  1063.  
  1064. trace: while evaluating anonymous lambdaction
  1065. at: (125:29) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  1066.  
  1067. 124| filterAttrs = pred: set:
  1068. 125| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
  1069. | ^
  1070. 126|
  1071.  
  1072. trace: from call site
  1073. at: (125:18) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  1074.  
  1075. 124| filterAttrs = pred: set:
  1076. 125| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
  1077. | ^
  1078. 126|
  1079.  
  1080. trace: while evaluating 'filterAttrs'
  1081. at: (124:23) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  1082.  
  1083. 123| */
  1084. 124| filterAttrs = pred: set:
  1085. | ^
  1086. 125| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
  1087.  
  1088. trace: from call site
  1089. at: (293:35) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  1090.  
  1091. 292| merge = loc: defs:
  1092. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  1093. | ^
  1094. 294| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue
  1095.  
  1096. trace: while evaluating 'merge'
  1097. at: (292:20) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  1098.  
  1099. 291| check = isAttrs;
  1100. 292| merge = loc: defs:
  1101. | ^
  1102. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  1103.  
  1104. trace: from call site
  1105. at: (417:59) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1106.  
  1107. 416| if isDefined then
  1108. 417| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  1109. | ^
  1110. 418| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  1111.  
  1112. trace: while evaluating the attribute 'mergedValue'
  1113. at: (415:5) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1114.  
  1115. 414| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
  1116. 415| mergedValue =
  1117. | ^
  1118. 416| if isDefined then
  1119.  
  1120. trace: while evaluating the option `system.build':
  1121. trace: while evaluating the attribute 'value'
  1122. at: (383:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1123.  
  1124. 382| in opt //
  1125. 383| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
  1126. | ^
  1127. 384| inherit (res.defsFinal') highestPrio;
  1128.  
  1129. trace: while evaluating anonymous lambdaction
  1130. at: (84:45) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1131.  
  1132. 83| yieldConfig = prefix: set:
  1133. 84| let res = removeAttrs (mapAttrs (n: v:
  1134. | ^
  1135. 85| if isOption v then v.value
  1136.  
  1137. trace: from call site
  1138. trace: while evaluating the attribute 'config.system.build.toplevel'
  1139. ^
  1140. 126|
  1141.  
  1142. trace: while evaluating anonymous lambdaction
  1143. at: (125:29) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  1144.  
  1145. 124| filterAttrs = pred: set:
  1146. 125| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
  1147. | ^
  1148. 126|
  1149.  
  1150. trace: from call site
  1151. at: (125:18) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  1152.  
  1153. 124| filterAttrs = pred: set:
  1154. 125| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
  1155. | ^
  1156. 126|
  1157.  
  1158. trace: while evaluating 'filterAttrs'
  1159. at: (124:23) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/attrsets.nix
  1160.  
  1161. 123| */
  1162. 124| filterAttrs = pred: set:
  1163. | ^
  1164. 125| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
  1165.  
  1166. trace: from call site
  1167. at: (293:35) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  1168.  
  1169. 292| merge = loc: defs:
  1170. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  1171. | ^
  1172. 294| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue
  1173.  
  1174. trace: while evaluating 'merge'
  1175. at: (292:20) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/types.nix
  1176.  
  1177. 291| check = isAttrs;
  1178. 292| merge = loc: defs:
  1179. | ^
  1180. 293| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs:
  1181.  
  1182. trace: from call site
  1183. at: (417:59) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1184.  
  1185. 416| if isDefined then
  1186. 417| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
  1187. | ^
  1188. 418| else let firstInvalid = findFirst (def: ! type.check def.value) null defsFinal;
  1189.  
  1190. trace: while evaluating the attribute 'mergedValue'
  1191. at: (415:5) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1192.  
  1193. 414| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
  1194. 415| mergedValue =
  1195. | ^
  1196. 416| if isDefined then
  1197.  
  1198. trace: while evaluating the option `system.build':
  1199. trace: while evaluating the attribute 'value'
  1200. at: (383:9) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1201.  
  1202. 382| in opt //
  1203. 383| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
  1204. | ^
  1205. 384| inherit (res.defsFinal') highestPrio;
  1206.  
  1207. trace: while evaluating anonymous lambdaction
  1208. at: (84:45) in file: /nix/store/qrg612j0966fl4ahwzy27v2sxiybxzxz-source/lib/modules.nix
  1209.  
  1210. 83| yieldConfig = prefix: set:
  1211. 84| let res = removeAttrs (mapAttrs (n: v:
  1212. | ^
  1213. 85| if isOption v then v.value
  1214.  
  1215. trace: from call site
  1216. trace: while evaluating the attribute 'config.system.build.toplevel'
  1217.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement