Skip to content

Commit 8c76760

Browse files
committed
devenv: fix build outputs
We were recursing into a derivation that had a recursive loop in it. Honestly, we should probably just build outputs (the attr) vs this.
1 parent 44b097d commit 8c76760

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

devenv/src/flake.tmpl.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,12 @@
137137
if builtins.elem typeName [ "output" "outputOf" ] then
138138
{ ${name} = config.${name}; }
139139
else { }
140-
else
140+
else if builtins.isAttrs option && !lib.isDerivation option then
141141
let v = build option config.${name};
142142
in if v != { } then {
143143
${name} = v;
144144
} else { }
145+
else { }
145146
)
146147
options;
147148
in

0 commit comments

Comments
 (0)