๐ I'm trying to adapt the nixpkgs 0.11 derivation for 0.12 (nightly/master), using @dreamy mauve's LLVM 17 draft. I think almost everything works, except for the postBuild, which is:
postBuild = ''
stage3/bin/zig run ../tools/docgen.zig -- ../doc/langref.html.in langref.html --zig $PWD/stage3/bin/zig
'';
Last bit of the log is:
Generating docgen examples [1874/5445] error: unable to generate DLL import .lib file for ntdll: FileNotFound
The following command exited with code 1:
/build/zig-0.12.0-dev.1643+91329ce94/build/stage3/bin/zig test docgen_tmp/test_noreturn_from_exit.zig -target x86_64-windows --test-no-exec
../doc/langref.html.in:5211:25: error: test failed
{#target_windows#}
Generating docgen examples [1880/5445] error: ParseError
/build/zig-0.12.0-dev.1643+91329ce94/tools/docgen.zig:1864:17: 0x288f59 in run (docgen)
return error.ChildExitError;
^
/build/zig-0.12.0-dev.1643+91329ce94/tools/docgen.zig:289:5: 0x2a3d2e in parseError__anon_6475 (docgen)
return error.ParseError;
^
/build/zig-0.12.0-dev.1643+91329ce94/tools/docgen.zig:1585:29: 0x29bf38 in genHtml__anon_4641 (docgen)
return parseError(tokenizer, code.source_token, "test failed", .{});
^
/build/zig-0.12.0-dev.1643+91329ce94/tools/docgen.zig:106:5: 0x2a8190 in main (docgen)
try genHtml(allocator, &tokenizer, &toc, buffered_writer.writer(), zig_exe, opt_zig_lib_dir, do_code_tests);
^
/nix/store/wr08yanv2bjrphhi5aai12hf2qz5kvic-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context
@dreamy mauve were you able to get Zig building yet with your branch? Not too sure if this is drift anywhere or if something else is missing. Any clues are appreciated ๐