Commit ff75b34
committed
Replace recursive-nix with IFD for -env job generation
The -env jobs previously used recursive-nix to run `nix print-dev-env`
inside a derivation, but this fails on remote builders with:
"recursive-nix is not supported yet by external derivation builders"
This commit replaces that approach with Import From Derivation (IFD):
- Read the mkShell output directly at evaluation time via builtins.readFile
- Filter out the self-referencing $out variable to break circular deps
- Embed the environment content directly in the wrapper script
The mkShell output already contains "declare -x VAR=value" lines which
is exactly what's needed. This approach:
- Avoids the recursive-nix requirement entirely
- Still includes all runtime dependencies (GHC, cabal, tools, etc.)
- Works on remote builders without special configuration1 parent 8ddd9d2 commit ff75b34
1 file changed
+20
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
221 | 228 | | |
222 | 229 | | |
223 | 230 | | |
| |||
235 | 242 | | |
236 | 243 | | |
237 | 244 | | |
238 | | - | |
239 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
240 | 248 | | |
241 | 249 | | |
242 | 250 | | |
| |||
0 commit comments