Closed vssukharev closed 1 week ago
I can compile & use c3c via nix build
. The devShell is... sketchy, due to the LLVM & LLD being separeted, cmake won't work as it doesn't find LLD
. Sadly that's not really something we can handle, unless we do a shellHook which does the replacing, but then it polutes users git state with modified CMakeLists.txt
I'made dev shell only for LSP working correctly. So that you need to use nix build .#c3c-nochecks
to make project built. Unfortunately, as you said, there are no appropriate workarounds how to do it in dev shell directly.
Thank you!
Added support for nix flakes.
Flake provides the following outputs:
packages.${system}.default
- refers toc3c
packages.${system}.c3c
- c3c derivationpackages.${system}.c3c-debug
- debug version (also includes compile_commands.json in derivation path)packages.${system}.c3c-nochecks
- same asc3c-debug
but with omitted checksdevShells.${system}.default
- dev shell for lsp